#1  
Old 25th March 2013, 19:45
madmac007 madmac007 is offline
Member
 
Join Date: Feb 2007
Posts: 44
Thanks: 1
Thanked 0 Times in 0 Posts
Default Dig command

After setting up 2 Debian DNS servers as per:
http://www.howtoforge.com/how-to-run...debian-squeeze

Added numerours entries, everything is cloned to 2nd server no probs.

However, when testing using " dig " Using this server name " ns1.test1.com and dns entry for mydomain1.com
Eg:
dig @ns1.test1.com any mydomain1.com

; <<>> DiG 9.7.3 <<>> @ns1.test1.comt any mydomain1.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached


So I ran the same command using 127.0.0.1, and it works?

dig @127.0.0.1 any mydomain1.com

; <<>> DiG 9.7.3 <<>> @127.0.0.1 any mydomain1.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 158
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 7, AUTHORITY: 0, ADDITIONAL: 2

;; QUESTION SECTION:
;mydomain1.com. IN ANY

;; ANSWER SECTION:
mydomain1.com. 38400 IN SOA ns1.test1.com. admin@test1.com. 2013012503 10800 3600 604800 38400
mydomain1.com. 38400 IN A 192.168.11.3
mydomain1.com. 38400 IN MX 10 mx1..test1.com.
mydomain1.com. 38400 IN MX 20 mx2..test1.com.
mydomain1.com. 0 IN NS ns1.test1.com.
mydomain1.com. 0 IN NS ns2.test1.com.
mydomain1.com. 38400 IN TXT "v=spf1 include:.test1.com ~all"

;; ADDITIONAL SECTION:
ns1.test1.com. 7200 IN A 192.168.11.1
ns2.test1.com. 7200 IN A 192.168.11.2

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Mar 25 11:34:01 2013
;; MSG SIZE rcvd: 291


How do I fix this Please
Note names and IP`s changed to protect the inocent : )
Reply With Quote
Sponsored Links
  #2  
Old 25th March 2013, 20:51
madmac007 madmac007 is offline
Member
 
Join Date: Feb 2007
Posts: 44
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default Dig-Resolved

sorry I do feel stupid
Simple rookie mistake.
error in
/etc/hosts

it had
127.0.0. 1 ns1.test1.com ns1

Changed it to
192.168.11.1 ns1.test1.com ns1

Hope this prevents anyone making the same rookie mistake I did,
sorry it was a long day.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail hold in Q fisherofer Installation/Configuration 1 5th February 2012 14:29
Can't receive mails baicunko Server Operation 12 3rd August 2011 23:02
Postfix queue problem? murunix Server Operation 7 2nd May 2011 02:55
proFTPd passive mode problems bisbell Server Operation 8 6th August 2008 22:12
help on /etc/rc0.d/K20dnsctl -> ../init.d/dnsctl zimele General 13 23rd August 2006 17:06


All times are GMT +2. The time now is 14:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.