Rishi Srivatsavai wrote: > On 06/09/10 11:25, Hillel Lubman wrote: >> How can a custom DNS server be used when network is configured to use DHCP >> on OpenSolaris? (the DNS from my ISP is broken - it has a hijacked domains >> problem for a certain range of addresses and trying to explain it to them >> was totally non productive). If I add some nameserver entry to >> /etc/resolv.conf it's being erased on every restart. (But I don't want >> static IP configuration either, because IP should come from DHCP server). > > If you are using a wireless router/NAT box with your ISP connection then you > might > be able to configure a custom DNS sever on the NAT box so check the settings > page if > you are using such a device.
For what it's worth, back when I had DHCP on my main system at home (I've now got statics), I would set PARAM_IGNORE_LIST in /etc/default/dhcpagent to 6,15 (DNSserv,DNSdmain), and then configure /etc/resolv.conf manually. If you don't want junk from your ISP at all, this seems like the most supportable way to go. You can then run a caching /usr/sbin/named, point the resolver to 127.0.0.1, and you're in good shape. If you want a combination of the ISP's data and your own (which is how I interpreted the request the first time I read it), then you have to resort to the sort of script hackery I suggested. But a complete override is simple. -- James Carlson 42.703N 71.076W <carls...@workingcode.com> _______________________________________________ networking-discuss mailing list networking-discuss@opensolaris.org