View Single Post
  #11  
Old 18th January 2013, 22:56
iulianbrinzoi iulianbrinzoi is offline
Junior Member
 
Join Date: Jan 2013
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default DNS Fix!

Quote:
Originally Posted by melkij22 View Post
Hi all,
I have question about DNS. I'm using opensuse 12.1 OS.
Also I have one server which is connected to internet via router with DMZ. ( I can connect to server and do whatever I want via external IP address ).
I have installed mydns and fresh install of ispconfig 3. ( done everything like was written in Perfect server guide )
Then I changed ns1 and ns2 at my domain registrator to :
ns1.mydomain.com ip : myexternalip
ns2.mydomain.com ip : myexternalip

Then I made dns records in ispconfig -> dns :
DNS Zone :
Code:
Zone ( SOA ) mydomain.com
NS ns1.mydomain.com
Email info@mydomain.com
Refresh 7200
Retry 540
Expire 604800
Minimum 86400
TTL 3600
And records :
Code:
	A 	mydomain.com. 	MyExternalIP 	0 	
	A 	mail 	MyExternalIP 	0 	
	A 	www 	MyExternalIP 	0 	
	MX 	mydomain.com. 	mail.mydomain.com. 	10 	
	NS 	mydomain.com. 	ns1.mydomain.com. 	0 	
	NS 	mydomain.com. 	ns2.mydomain.com. 	0
Then I tryed to ping mydomain.com, but it is written :
Ping request could not find host mydomain.com. Please check the name and try again.


and here is dig
Code:
 <<>> DiG 9.8.1-P1 <<>> mydomain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 38417
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mydomain.com.                        IN      A

;; Query time: 48 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Fri May 18 10:10:50 2012
;; MSG SIZE  rcvd: 32
What should I check or do?
Thanks
Try to change template of old DNS to this new template code.
Work perfectly!
[ZONE]
origin={DOMAIN}.
ns=ns1.{DOMAIN}.
mbox={EMAIL}.
refresh=28800
retry=7200
expire=604800
minimum=86400
ttl=86400

[DNS_RECORDS]
A|{DOMAIN}.|{IP}|0|86400
A|www|{IP}|0|86400
A|mail|{IP}|0|86400
A|{NS1}.|{IP}|0|86400
NS|{DOMAIN}.|{NS1}.|0|86400
MX|{DOMAIN}.|mail.{DOMAIN}.|10|86400

Julian the king!
Reply With Quote
Sponsored Links