Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have no idea why the Bind developers are deprecating nslookup, but I'd be willing to bet is has to do with the development team no longer having resources to support code that is older than dirt (so to speak).
BTW: For the most part, the dig and host commands basically output the same info. They just have different defaults. Example:
Just an FYI: The DNS server that you configured earlier is a "caching" name server. The only difference between what you have currently configured and a "caching only" name server is your configuration loads a couple of authoritative zones for your private network (which is good). But it still caches all non-authoritavie queries just like a "caching ony" configuration would. So the configuration you setup earlier is actually better.
i just configured a caching only server becz at that time i couldn't make a difference between master , slave and caching.
snip...
AM i right or not plz. clarify.
Technically, a caching-only server does not load any authoritaive zones, just the root (hint) and localhost reverse zones. In short, a caching-only server caches (stores in RAM) all queries that its asked to resolve by clients configured to use this server. It's not authoritative for anything.
So by definition, the DNS server you configured in the other thread is no longer a caching-only DNS server. Why? Because it now loads a couple of authoritative zones for your private network. But it still caches all non authoritative queries just like a "caching-only" server would, but it also answers authoritaive queries for your private domain. Which is good!
With reagrds to the master/slave designation - The terms master/slave are only meaningful among the configured DNS servers. i.e. I'm not aware of a RR type that returns a master/slave designation. A DNS server configured to load a zone as a slave will transfer its authoritative copy of that zone from the DNS server that loads the same zone name as a master. But heres the kicker (and the source of confusion for people learning DNS)... DNS servers use a round-robin algorithm during a query that involves recursion. So if your domain name lists two name servers as authoritative (one master, one slave) a remote DNS server (like mine) will alternate queries between the two name servers to fetch answers. It will not query the so called master name server first (everytime), and if no answer is received (server down), query the slave. In fact, ISP's like yahoo, use this round-robin algorithm to distribute bandwidth among multiple servers. Checkout how many servers are listed for www.yahoo.com
If you want to visually see round-robin in effect, try using dig +trace for the same domain name multiple times and watch where the responses are received from. Especially from the TLD name servers.
BTW: When you are ready to test your DNS server (should you register your domain) , checkout: www.dnsstuff.com
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.