VPS DNS Problem

marsdl

Verified User
Joined
Jun 28, 2009
Messages
28
hey .
i have a big problem with vps .
all my sites is down .
but server and services is up .

i search to my problem and find this :
Code:
http://www.intodns.com/iranianhoster.com
but i dont know how fix it .

and i direct admin say to me this message :
Your hostname, iranianhoster.com, and the servername you have set in DirectAdmin, server.iranianhoster.com, do not match. It is recommended that these two values are the same.

Solution:

Either change the servername in DirectAdmin or run the 'hostname.sh' script via ssh to change your hostname

iranianhoster.com, resolves to 127.0.0.1. Please make sure that your hostname resolves to your server ip (207.182.159.221) or else your email may not work correctly.

Solution:

Create an A record for your hostname (iranianhoster.com.) in your DNS control panel. Point the hostname to your server's main IP address. Also check /etc/hosts to ensure that the server ip is correctly set.

and i change server.iranianhoster.com in etc-> host to iranianhoster.com .mean remove server. from before iranianhoster.
:D

Please help me .
 
Hello,

Make sure, bind is running and firewall doesn't block your 53 port both TCP and UDP.

Thats very bad idea to have:

ns1.iranianhoster.com. ['207.182.159.221'] [TTL=172800]
ns2.iranianhoster.com. ['207.182.159.221'] [TTL=172800]

both NS with one IP. Please, do not to save on quality.

P.S. 1. You'd better use you provider's DNS (both primary and secondary, or just only secondary).

P.S. 2. You'd better hire an permanent administrator to help you.
 
Hello,

Make sure, bind is running and firewall doesn't block your 53 port both TCP and UDP.

Thats very bad idea to have:



both NS with one IP. Please, do not to save on quality.

P.S. 1. You'd better use you provider's DNS (both primary and secondary, or just only secondary).

P.S. 2. You'd better hire an permanent administrator to help you.

hey man .
port 53 is open .

i don't understand p.s.1 and 2.
my administrator sayd to me tel to directadmin support .
i have a idea . i want to change my vps to new vps .
 
Is bind running?

About P.S.#1: As I've said previously, that's a very bad, bad, bad idea to have both NS with one IP (or even with different IPs on one VPS). Please, do not save on quality, better use Name Servers of your VPS provider. Most of VPS providers allow their customers to use prepared name servers, which are enough stable.

About P.S.#2: That's bad admin, if he/she sends you on forum to make his/her job. Is it a free support, made by your VPS provider? Or one, whom you are paying for a job?
 
Is bind running?

About P.S.#1: As I've said previously, that's a very bad, bad, bad idea to have both NS with one IP (or even with different IPs on one VPS). Please, do not save on quality, better use Name Servers of your VPS provider. Most of VPS providers allow their customers to use prepared name servers, which are enough stable.

About P.S.#2: That's bad admin, if he/she sends you on forum to make his/her job. Is it a free support, made by your VPS provider? Or one, whom you are paying for a job?

i have only 1 IP for my vps .

i have error with named service .
this service is down and dont want to start for me .lol

this server have this error message :
Mar 25 22:53:34 iranianhoster named: zone mytash.com/IN: loaded serial 2010070200
Mar 25 22:53:34 iranianhoster named: zone downloadrls.com/IN: loaded serial 2010070200
Mar 25 22:53:34 iranianhoster named: zone trancerls.com/IN: loaded serial 2010072900
Mar 25 22:53:34 iranianhoster named: zone biamozid.com/IN: loaded serial 2010110500
Mar 25 22:53:34 iranianhoster named: zone biamoozid.com/IN: loaded serial 2010110500
Mar 25 22:53:34 iranianhoster named: zone hasangol.com/IN: loaded serial 2010120600
Mar 25 22:53:34 iranianhoster named: zone amin-bahrami.com/IN: loaded serial 2010122700
Mar 25 22:53:34 iranianhoster named: zone 221.159.182.207.in-addr.arpa/IN: loaded serial 2011031600
Mar 25 22:53:34 iranianhoster named: zone iranianhoster.com/IN: has no NS records
Mar 25 22:53:34 iranianhoster named: _default/iranianhoster.com/IN: bad zone
Mar 25 22:53:34 iranianhoster named: zone mobilerls.com/IN: loaded serial 2011032400
Mar 25 22:54:11 iranianhoster named: zone localhost/IN: loaded serial 42
Mar 25 22:54:11 iranianhoster named: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Mar 25 22:54:11 iranianhoster named: zone mytash.com/IN: loaded serial 2010070200
Mar 25 22:54:11 iranianhoster named: zone downloadrls.com/IN: loaded serial 2010070200
Mar 25 22:54:11 iranianhoster named: zone trancerls.com/IN: loaded serial 2010072900
Mar 25 22:54:11 iranianhoster named: zone biamozid.com/IN: loaded serial 2010110500
Mar 25 22:54:11 iranianhoster named: zone biamoozid.com/IN: loaded serial 2010110500
Mar 25 22:54:11 iranianhoster named: zone hasangol.com/IN: loaded serial 2010120600
Mar 25 22:54:11 iranianhoster named: zone amin-bahrami.com/IN: loaded serial 2010122700
Mar 25 22:54:11 iranianhoster named: zone 221.159.182.207.in-addr.arpa/IN: loaded serial 2011031600
Mar 25 22:54:11 iranianhoster named: zone iranianhoster.com/IN: has no NS records
Mar 25 22:54:11 iranianhoster named: _default/iranianhoster.com/IN: bad zone
Mar 25 22:54:11 iranianhoster named: zone mobilerls.com/IN: loaded serial 2011032400
Mar 25 22:54:21 iranianhoster named: zone localhost/IN: loaded serial 42
Mar 25 22:54:21 iranianhoster named: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Mar 25 22:54:21 iranianhoster named: zone mytash.com/IN: loaded serial 2010070200
Mar 25 22:54:21 iranianhoster named: zone downloadrls.com/IN: loaded serial 2010070200
Mar 25 22:54:21 iranianhoster named: zone trancerls.com/IN: loaded serial 2010072900
Mar 25 22:54:21 iranianhoster named: zone biamozid.com/IN: loaded serial 2010110500
Mar 25 22:54:21 iranianhoster named: zone biamoozid.com/IN: loaded serial 2010110500
Mar 25 22:54:21 iranianhoster named: zone hasangol.com/IN: loaded serial 2010120600
Mar 25 22:54:21 iranianhoster named: zone amin-bahrami.com/IN: loaded serial 2010122700
Mar 25 22:54:21 iranianhoster named: zone 221.159.182.207.in-addr.arpa/IN: loaded serial 2011031600
Mar 25 22:54:21 iranianhoster named: zone iranianhoster.com/IN: has no NS records
Mar 25 22:54:21 iranianhoster named: _default/iranianhoster.com/IN: bad zone
Mar 25 22:54:21 iranianhoster named: zone mobilerls.com/IN: loaded serial 2011032400
Mar 25 22:54:33 iranianhoster named: zone localhost/IN: loaded serial 42
Mar 25 22:54:33 iranianhoster named: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Mar 25 22:54:33 iranianhoster named: zone mytash.com/IN: loaded serial 2010070200
Mar 25 22:54:33 iranianhoster named: zone downloadrls.com/IN: loaded serial 2010070200
Mar 25 22:54:33 iranianhoster named: zone trancerls.com/IN: loaded serial 2010072900
Mar 25 22:54:33 iranianhoster named: zone biamozid.com/IN: loaded serial 2010110500
Mar 25 22:54:33 iranianhoster named: zone biamoozid.com/IN: loaded serial 2010110500
Mar 25 22:54:34 iranianhoster named: zone hasangol.com/IN: loaded serial 2010120600
Mar 25 22:54:34 iranianhoster named: zone amin-bahrami.com/IN: loaded serial 2010122700
Mar 25 22:54:34 iranianhoster named: zone 221.159.182.207.in-addr.arpa/IN: loaded serial 2011031600
Mar 25 22:54:34 iranianhoster named: zone iranianhoster.com/IN: has no NS records
Mar 25 22:54:34 iranianhoster named: _default/iranianhoster.com/IN: bad zone
Mar 25 22:54:34 iranianhoster named: zone mobilerls.com/IN: loaded serial 2011032400

Omg service named start field .
i every after turn off my server for file managing , i using yum install dbus and named running for me .
 
i have only 1 IP for my vps .

In such a case, you'd better buy a second VPS in other DC, or use name servers of your VPS provider. Otherwise, you might have very serious problems in a future with your customers.

Mar 25 22:53:34 iranianhoster named: _default/iranianhoster.com/IN: bad zone

Check the content for iranianhoster.com zone. That is what cause the problem with bind starting.
 
Check the content for iranianhoster.com zone. That is what cause the problem with bind starting.

ok. how to check this ?


and second Ip in my vps or second vps ?
i dont know why need 2 IP ?
 
ok. how to check this ?

Open in any editor and see. Or post here the content of the file.

and second Ip in my vps or second vps ?
i dont know why need 2 IP ?

Second VPS (with ~64RAM and 100-300CPU) is needed to organize a slave DNS for redundancy and fast name resolution. Secondary DNS hosted on another server is a best practice. Every network should have more than one DNS server in different geographical locations. If anything happens at the location of DNS 1 and it goes down, you have DNS 2 to serve your client requests.

Note, that if you've got only one NS on the same box with your HTTP/FTP/MAIL servers, and if anything happens with the main server, every new visitor will get SERVER NOT FOND, OR DOES NOT EXIST error. And even your main server was down for only seconds or minutes, the visitor won't be able to access your server, because of DNS answer caching, that will still think, that your server does not exist.

p.s. You might want to hire me to set up a secondary DNS on a second VPS.
 
Open in any editor and see. Or post here the content of the file.

this is a file ? how get it ? if this is a file please say me location.
if is very bad , i send to you root and directadmin password for check ?
u do it ?

may i chat in yahoo with you ?
 
Last edited:
Sure, I can help you and do it and anything you need as a commerce service. Send me a PM.

By default, you can try to find the file in /var/named/etc/
What OS do you have there? You can learn file location from /etc/named.conf
 
Sure, I can help you and do it and anything you need as a commerce service. Send me a PM.

By default, you can try to find the file in /var/named/etc/
What OS do you have there? You can learn file location from /etc/named.conf

i using centos .

please check your P.M

thanks alot

named.conf :
zone "downloadrls.com" { type master; file "/var/named/downloadrls.com.db"; };
zone "trancerls.com" { type master; file "/var/named/trancerls.com.db"; };
zone "biamozid.com" { type master; file "/var/named/biamozid.com.db"; };
zone "biamoozid.com" { type master; file "/var/named/biamoozid.com.db"; };
zone "hasangol.com" { type master; file "/var/named/hasangol.com.db"; };
zone "amin-bahrami.com" { type master; file "/var/named/amin-bahrami.com.db"; };
zone "221.159.182.207.in-addr.arpa" { type master; file "/var/named/221.159.182.207.in-addr.arpa.db"; };
zone "iranianhoster.com" { type master; file "/var/named/iranianhoster.com.db"; };
zone "mobilerls.com" { type master; file "/var/named/mobilerls.com.db"; };

for iranianhoster is :

$TTL 14400
@ IN SOA ns1.iranianhoster.com hostmaster.iranianhoster.com. (
2011032503
14400
3600
1209600
86400 )

iranianhoster.com 14400 IN NS 207.182.159.221
iranianhoster.com 14400 IN NS ns1.iranianhoster.com
iranianhoster.com 14400 IN NS ns2.iranianhoster.com

ftp 14400 IN A 207.182.159.221
iranianhoster.com 14400 IN A 207.182.159.221
localhost 14400 IN A 127.0.0.1
mail 14400 IN A 207.182.159.221
pop 14400 IN A 207.182.159.221
rap 14400 IN A 207.182.159.221
smtp 14400 IN A 207.182.159.221
www 14400 IN A 207.182.159.221
www.rap 14400 IN A 207.182.159.221

iranianhoster.com. 14400 IN MX 10 mail

207.182.159.221 14400 IN CNAME iranianhoster.com.


iranianhoster.com. 14400 IN TXT "v=spf1 a mx ip4:207.182.159.221 ~all"
 
Last edited:
You've forgoten full stops:

iranianhoster.com 14400 IN NS 207.182.159.221
iranianhoster.com 14400 IN NS ns1.iranianhoster.com
iranianhoster.com 14400 IN NS ns2.iranianhoster.com

and here

iranianhoster.com 14400 IN A 207.182.159.221

+++

Must be:

iranianhoster.com. 14400 IN NS ns1.iranianhoster.com.
iranianhoster.com. 14400 IN NS ns2.iranianhoster.com.

and

iranianhoster.com. 14400 IN A 207.182.159.221
 
Last edited:
i have new problem in :

Missing nameservers reported by parent FAIL: The following nameservers are listed at your nameservers as nameservers for your domain, but are not listed at the parent nameservers (see RFC2181 5.4.1). You need to make sure that these nameservers are working.If they are not working ok, you may have problems!
ns1.iranianhoster.com.iranianhoster.com
ns2.iranianhoster.com.iranianhoster.com

207.182.159.221.iranianhoster.com
Error Missing nameservers reported by your nameservers ERROR: One or more of the nameservers listed at the parent servers are not listed as NS records at your nameservers. The problem NS records are:
ns2.iranianhoster.com
ns1.iranianhoster.com
This is listed as an ERROR because there are some cases where nasty problems can occur (if the TTLs vary from the NS records at the root servers and the NS records point to your own domain, for example).

OMG i may be crazy
 
I still see:

Code:
iranianhoster.com.      14400   IN      NS      207.182.159.221.iranianhoster.com.
iranianhoster.com.      14400   IN      NS      ns1.iranianhoster.com.iranianhoster.com.
iranianhoster.com.      14400   IN      NS      ns2.iranianhoster.com.iranianhoster.com.

Thus fill stops are missing, or you did not restart bind?

Remove

iranianhoster.com. 14400 IN NS 207.182.159.221.iranianhoster.com.

That line is unnecessary.
 
i change server.iranianhoster.com in etc-> host to iranianhoster.com .mean remove server. from before iranianhoster.
Do you mean your /etc/hosts file? If so, then why do you have anything in your hosts file except localhost? I don't, and if your server is properly configured, you don't need it.

Let's look at those errors in order:
Missing nameservers reported by parent:
and
Missing nameservers reported by your nameservers
Check your DNS listings for iranianhoster.com, on your DirectAdmin server. Make sure there's a . character after the .com. In other words the entries should be:

ns1.iranianhoster.com.
and
ns2.iranianhoster.com.

If the entries you have don't have a . at the end, then first create new ones with the ., and then delete the entries without the ..

Then delete the NS record: 207.182.159.221.iranianhoster.com.

Then, to make sure BIND is restarted, restart it from the DirectAdmin control panel. Look for the services link.
Different subnets
and
Different autonomous systems
The only way to correct these is to use a different nameserver, somewhere else, for your slaves. You can find someone else to trade with or purchase DNS slave service from someone. We and others who post here in the advertising forum offer it.
SOA MNAME entry
Making changes above should fix this error; if it doesn't you may need to make a change somewhere else; post to let us know after everything else is fixed.

Jeff
 
i set dot after .com in dns .

How did you do that? dig and intodns.com still are reporting the issue:

dig iranianhoster.com

; <<>> DiG 9.6-ESV-R3 <<>> iranianhoster.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63852
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 0

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

;; ANSWER SECTION:
iranianhoster.com. 14400 IN A 207.182.159.221

;; AUTHORITY SECTION:
iranianhoster.com. 14400 IN NS ns2.iranianhoster.com.iranianhoster.com.
iranianhoster.com. 14400 IN NS 207.182.159.221.iranianhoster.com.
iranianhoster.com. 14400 IN NS ns1.iranianhoster.com.iranianhoster.com.


;; Query time: 276 msec
;; SERVER: 79.99.4.100#53(79.99.4.100)
;; WHEN: Sat Mar 26 09:20:38 2011
;; MSG SIZE rcvd: 135
 
Back
Top