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.
Distribution: Ubuntu server 12.04 LTS / Raspbian Wheezy
Posts: 64
Original Poster
Rep:
OK, thanks for your reply, can you also tell me why it is not possible to give it names? because on a sbs server I get a name for the nameserver when I perform a nslookup
OK, thanks for your reply, can you also tell me why it is not possible to give it names? because on a sbs server I get a name for the nameserver when I perform a nslookup
You understand that you cannot use a hostname as the nameserver argument in /etc/resolv.conf, because you'll need another resolver to resolve it. I guess sbs is some sort of windows, because IIRC windows nslookup answer uses the dns hostname in the response "Server" line.
In linux you can run nslookup like this:
Indeed, but I do not have that line with hosts,dns
I have read the man resolv.conf page and even there I cannot find anything about that line hosts,dns
Can you explain a bit more please?
Indeed, but I do not have that line with hosts,dns
I have read the man resolv.conf page and even there I cannot find anything about that line hosts,dns
Can you explain a bit more please?
This is obviously wrong. You cannot have a line "hosts,dns" in /etc/resolv.conf. I guess that the previous poster is talking about the:
Code:
hosts: files dns
in /etc/nsswitch.conf, that is used by application when trying to resolve hostnames
The DNS server isn't "named" in the configuration. It has to be named in DNS, here is an example that creates the reverse zone for 127.0.0.0/24 on the DNS server. If your DNS server has a public IP address you will need to make sure the reverse zone is delegated to your DNS server.
----------------------ZONE STATMENT FROM NAMED.CONF-------------------------
Code:
zone "0.0.127.in-addr.arpa" in{
type master;
file "0.0.127.in-addr.arpa";
allow-update{none;};
};
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.