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 a small network with 6 machines. i fedora core 2 that is dhcpd httpd named server for the netowrk. it is called fedora.homenet.home and the others are a variation on <somename>.homenet.home.
The problem:-
If I issue nslookup i can get the names and IP's of the other Pc's on the network no problem, but if I nslookup then ask for fedora I can't get an answer, however, if I ask for homenet.home I get the IP of fedora(its the only static IP 192.168.1.1) and it thinks the name is homenet.home and not fedora.homenet.home?
The exact same thing happens with host -l homenet.home, I get all the names and IP's of the PC's but nothing for fedora.homenet.home. It gives me the IP but thinks its called homenet.home. Any ideas!!
Originally posted by james.farrow I have a small network with 6 machines. i fedora core 2 that is dhcpd httpd named server for the netowrk. it is called fedora.homenet.home
Thanx in advance
dont u have named running? so u must have zone files for homenet.home
check /etc/named.conf to learn name of zone file of the homenet.home domain. not the reverse zone file!! if u want resolve ip to name, u must edit reverse zone file and add PTR records.
and find the file. it must be in somewhere of /var/named
#find /var/named -name "zone-file-name-of-homenet.home" -type f
after that, edit that file and add the following line.
fedora IN CNAME homenet.home.
did u use wizard to create homenet.home zone file ?
Distribution: SuSE Linux Open/Enterprise, Red Hat, Ubuntu
Posts: 147
Rep:
You can add the entry in the /etc/hosts file as well. I think its faster and easier. Ths 'hosts' file looks at static entries to resolve any hostnames to IP's and vice versa when their isnt a name server on the network. You can use that file and the DNS you have setup at the same time.
I edited the filed from scratch using vim. named is running. when i look at /var/log/messages and restart named it says named start up succeeded loaded serail ......
i have the folowing files in /var/named/chroot/var/named
homenet.home.zone
homenet.home.rev
named.ca
named.local
I'm not at my box now this is from memory.
which file do i add th line fedora IN CNAME homenet.home.
and where?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.