Hi..I added an entry as "
allow-query { localhost; 192.168.0.0/24; };" in /etc/named.conf file. But still I am unable to resolve from client side. and also not able to resolve for kadalur.com in server itself.
Note: my PC is having only one NIC, and it is not connected with network cable. Although I am able to ssh, telnet from one PC to other. Should the network cable be connected for DNS? Please see the below dig output.
dig @192.168.0.5 xp.kadalur.com--->from cent o/s
; <<>> DiG 9.7.0-P2-RedHat-9.7.0-5.P2.el6_0.1 <<>> @192.168.0.5 xp.kadalur.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached
dig xp.kadalur.com--->from cent o/s
; <<>> DiG 9.7.0-P2-RedHat-9.7.0-5.P2.el6_0.1 <<>> xp.kadalur.com
;; global options: +cmd
;; connection timed out; no servers could be reached
It is not working even I have given gateway and DNS as 192.168.0.1, please see the below gateway and resolv.conf file.
route -n-->cent o/s
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
0.0.0.0 192.168.0.5 0.0.0.0 UG 0 0 0 eth2
cat /etc/resolv.conf -->cent o/s
search ns.kadalur.com.
nameserver 192.168.0.5
XP machine
ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : computer_1
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : ns.kadalur.com.
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : ns.kadalur.com.
Description . . . . . . . . . . . : AMD PCNET Family PCI Ethernet Adapter
Physical Address. . . . . . . . . : 08-00-27-FC-5D-55
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.0.7
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.5
DNS Servers . . . . . . . . . . . : 192.168.0.5
C:\>nslookup www.kadalur.com
Can't find server name for address 192.168.0.5: Timed out
*** Default servers are not available
*** Request to UnKnown timed-out
DNS request timed out.
timeout was 2 seconds.
Server: UnKnown
Address: 192.168.0.5
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
And also added the entry to /etc/hosts file in the DNS server as below, but still it is not resolving from any of the clients.
cat /etc/hosts-->Server RHEL 6
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.0.5 kadalur.com redhat
192.168.0.3 cent.kadalur.com cent
192.168.0.1 ubuntu.kadalur.com ubuntu
192.168.0.7 xp.kadalur.com xp
But dig, nslookup, host commands resolving with IP address in only DNS server apart from kadalur.com.
host kadalur.com--->No output
echo $?
0
dig @localhost kadalur.com--from server
; <<>> DiG 9.7.0-RedHat-9.7.0-1.el6 <<>> @localhost kadalur.com
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54980
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;kadalur.com. IN A
;; AUTHORITY SECTION:
kadalur.com. 10800 IN SOA ns.kadalur.com. root.kadalur.com. 2010031902 10800 900 1814400 10800
;; Query time: 1 msec
;; SERVER: ::1#53(::1)
;; WHEN: Mon Oct 24 20:32:39 2011
;; MSG SIZE rcvd: 73
nslookup kadalur.com---from server
Server: 192.168.0.5
Address: 192.168.0.5#53
*** Can't find kadalur.com: No answer
host www.kadalur.com---from server
www.kadalur.com has address 192.168.0.5
host ubuntu.kadalur.com---from server
ubuntu.kadalur.com has address 192.168.0.1
nslookup cent.kadalur.com---from server
Server: 192.168.0.5
Address: 192.168.0.5#53
Name: cent.kadalur.com
Address: 192.168.0.3
dig xp.kadalur.com---from server
; <<>> DiG 9.7.0-RedHat-9.7.0-1.el6 <<>> xp.kadalur.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48165
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; QUESTION SECTION:
;xp.kadalur.com. IN A
;; ANSWER SECTION:
xp.kadalur.com. 86400 IN A 192.168.0.7
;; AUTHORITY SECTION:
kadalur.com. 86400 IN NS ns.kadalur.com.
;; ADDITIONAL SECTION:
ns.kadalur.com. 86400 IN A 192.168.0.5
;; Query time: 1 msec
;; SERVER: 192.168.0.5#53(192.168.0.5)
;; WHEN: Mon Oct 24 20:50:37 2011
;; MSG SIZE rcvd: 81
Please help me, since my RHCE training, I am facing difficulties in configuring DNS and DDNS.
Quote:
Originally Posted by jhwilliams
Hi there,
What is the output of these commands, on the client side (from ubuntu.kadalur.com)?
Code:
dig @192.168.0.5 xp.kadalur.com.
vs. just
Code:
dig xp.kadalur.com.
|