Dear All,
I just want to setup a local Naming server using Bind or whatever....ie.. In my network i need to ping the Linux box using name / call the local webserver using name instead of IP
1. I have installed bind and configured named.conf 2. I have copied localhost.zone to forward.com and modified below
lin.com (my domain name) IN NS ns.lin.com
lin.com. IN A 10.36.51.122 ns.lin.com. IN A 10.36.51.122 www.lin.com IN A 10.36.51.122
and in my named.conf
zone "lin.com" IN { type master; file "forward.com" };
I have restared my named service without any error.
But when I ping my PC using name (test.lin.com) reply comes from localhost.... WHY???
Please explain Thanks, Raman.
--------------------------------- Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out.
On 16-Aug-07, at 12:46 PM, Ramang G wrote:
But when I ping my PC using name (test.lin.com) reply comes from localhost.... WHY???
you need to add the fqdn in your /etc/hosts file
On 8/16/07, Ramang G mailramang@yahoo.com wrote:
Dear All,
I just want to setup a local Naming server using Bind or whatever....ie.. In my network i need to ping the Linux box using name / call the local webserver using name instead of IP
- I have installed bind and configured named.conf
- I have copied localhost.zone to forward.com and modified below
lin.com (my domain name) IN NS ns.lin.com
lin.com. IN A 10.36.51.122 ns.lin.com. IN A 10.36.51.122 www.lin.com IN A 10.36.51.122
and in my named.conf
zone "lin.com" IN { type master; file "forward.com" };
I have restared my named service without any error.
But when I ping my PC using name (test.lin.com) reply comes from localhost.... WHY???
Where have you given the IN record for test.lin.com? What happens when you ping only lin.com?
Ping isn't a tool to test DNS. Use dig instead. dig test.lin.com.
Regards, NMK.
On 8/16/07, Nadeem M. Khan nadeem.m.khan@gmail.com wrote:
Where have you given the IN record for test.lin.com?
Correction. Thats an "A" record, not "IN" record.
@KG,
That depends on nsswitch.conf.
Regards, NMK.