/etc/resolv.conf

Joseph S D Yao jsdy at cospo.osis.gov
Tue Dec 21 00:05:13 UTC 1999


On Mon, Dec 20, 1999 at 05:13:48PM -0600, Evans, Shawn wrote:
> 
> resolv.conf:
> domain	mydomain.com
> searchpath in.mickeymouse.net #some dns totally outside of mydomain.com
> nameserver 111.222.333.444    #primary DNS for mydomain.com
> nameserver 222.333.444.555    #secondary DNS for mydomain.com
> 
> Could I add on the primary DNS a searchpath line pointing to another domain
> all-together, (in this case in.mickeymouse.net as seen above) and then
> assume that any machine that uses the primary DNS would also get searched
> results from that other searchpath? ie:
> 
> user on MachineA who happens to resolv DNS from 111.222.333.444 and
> 222.333.444.555 does 'nslookup somewhere' Would the DNS resolv that to
> 'somewhere.in.mickeymouse.net' or would it just bomb out?
> 
> This would seem like a logical solution to me, because if it could be done
> on the primary DNS then each machine that needs to search for
> in.mickeymouse.net would not have to have there resolv.conf changed to
> include a searchpath.
> 
> We have many servers using a domain and Oracle and the DBA's are installing
> 'Names' within Oracle so I am looking for the "Best" solution for everyone
> involved so we can search outside our current domain and searchpath just
> seems like the answer.
> 
> Opinions/Ideas welcome.. =)
> 
> ---
> - Shawn L. Evans, mailto:slevans at sprintparanet.com -
> -   Phone: 1-918-573-9336 Mobile: 1-918-361-7601   -
> -      TxtPge: 8882079104.3828282 at pagenet.net      -
> -        Pager: 1-800-724-3329  Pin 3828282        -

Afraid this Does Not Work.  The 'named' server totally ignores the
/etc/resolv.conf file.  Only the programs running on that system that
want to resolve anything use that file.  This means, to turn it around,
that for this to work, you must make this change on every system that
would be using your DNS.  Probably non-trivial.

To turn it back around again, though, if the "in.mickeymouse.net"
network only contains a few specific entries that you want to use, there
is nothing to keep you from adding to your zone file something like:

	donald		IN  CNAME	donald.in.mickeymouse.net.
	pluto		IN  CNAME	pluto.in.mickeymouse.net.
	mickey		IN  CNAME	mickey.in.mickeymouse.net.
	chip		IN  CNAME	chip.in.mickeymouse.net.
	dale		IN  CNAME	dale.in.mickeymouse.net.

You would then just address these as "donald.mydomain.com", etc.

And if you just want to randomly plunder the "in.mickeymouse.net"
network, then shame on you.  Unca Walt wants to have a few words with
you.

-- 
Joe Yao				jsdy at cospo.osis.gov - Joseph S. D. Yao
COSPO/OSIS Computer Support					EMT-B
-----------------------------------------------------------------------
This message is not an official statement of COSPO policies.


More information about the bind-users mailing list