David Lloyd writes:
> My issue isn't with the DHCP server. In fact, if I get my setup from the 
> DHCP server, DNS works. It's just that the DNS it gives me is really bad 
> [1].

That's a solvable problem.  I have something like this in my
/etc/dhcp/eventhook script (owner root, mode 755) because I run a
local caching named, and I want to make sure that it's used:

if [ "$2" = BOUND -o "$2" = EXTEND ]; then
        (
        echo domain mydomain.com
        echo nameserver 127.0.0.1
        for addr in `/sbin/dhcpinfo -i $1 DNSserv`; do
                echo nameserver $addr
        done
        ) > /etc/resolv.conf.new
        if [ -f /etc/resolv.conf ]; then
                if cmp -s /etc/resolv.conf /etc/resolv.conf.new; then
                        rm /etc/resolv.conf.new
                else
                        mv /etc/resolv.conf.new /etc/resolv.conf
                fi
        else
                mv /etc/resolv.conf.new /etc/resolv.conf
        fi
fi

Not terribly elegant, but it works.

> My issue is that if I take the DHCP server out of the equation and try 
> to setup my routes and netmasks and hosts manually, the resolver flatly 
> refuses to resolve.
> 
> I should have said that in this latter case -- the manually configured 
> case -- that this will work:
> 
>   dig @an.appropriate.ip.of.a.DNS.server www.adam.com.au

In that case, it sounds like you have trouble in /etc/nsswitch.conf
(what are hosts and ipnodes set to?) or in /etc/resolv.conf.

-- 
James Carlson, KISS Network                    <[EMAIL PROTECTED]>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to