Problems setting up DNS (bind)?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
10 views
The first time the steering wheel manually DNS'kami, and immediately had problems. Even friends who did not just say that strange problem.


We have Debian Stable on VDS (firstvds unfortunately) and bind (8.4.7). It turns a couple of PHP saytik, customer server (but you can do anything). And have your cool server with Debian Squeeze, which raised a website in Python (just the VDS smallest, not mastered it Python from memory). To the IP of the VDS tied to the main domain, call it domain.ru. You may want one of the subdomains addressed in my IP. That is domain.ru — on the IP VDS, sub.domain.ru — in my. The task seems to be simple, but then the fun begins.




The zone file:
$TTL 3600 
domain.ru. IN SOA ns1.firstvds.ru. root.domain.ru. (2010090201 10800 3600 604800 86400)
domain.ru. IN NS ns1.firstvds.ru.
domain.ru. IN NS ns2.firstvds.ru.
domain.ru. IN NS ns3.firstvds.ru.
domain.ru. IN MX 10 mail
domain.ru. IN MX 20 mail
domain.ru. IN A [IP VDS]
www IN A [IP VDS]
ftp IN A [IP VDS]
mail IN A [IP VDS]
smtp IN A [IP VDS]
pop IN A [IP VDS]
sub IN A [IP of your server] # - all the fun here



All up, the zone ID in the first line is also constantly changing as expected. bind is restarted after a few hours, DNS was updated and if over SSH from VDS to do:

root:~# host sub.domain.ru

sub.domain.ru A [IP of my server]


And, it would seem that everything is fine. Only here every 3-4 hours (when updated DNS's) he changes IP. The subdomain has the old IP. That's how it looks with my car (the console just shows it is possible to trace):

[21:24:05]:vas3k@arch ~>nslookup sub.domain.ru
Server: 192.168.0.1
Address: 192.168.0.1#53

Non-authoritative answer:
Name: sub.domain.ru
Address: [new IP]

[23:26:06]:vas3k@arch ~>nslookup sub.domain.ru
Server: 192.168.0.1
Address: 192.168.0.1#53

Non-authoritative answer:
Name: sub.domain.ru
Address: [old IP, which is VDS]



So you can see what DNS here and there jumping. After a few hours becomes normal again, then again old. Website launching soon, so I would like to get rid of this. And I myself do it the first time, so as not TRU admin. Even tried using control panel to remove the domain and add it again. Same crap, but it happens and both IP Non-authoritative answer come.


This has been occurring for more than a month. I changed the zone file repeatedly. In support FirstVDS to go I don't even know whether, as they always say "your server — your problem" and advise all to be reinstalled.


P. S.: at Once I apologize for a made-up domains, I hope it is clear explained.
by | 10 views

7 Answers

0 like 0 dislike
The problem really was on the side FirstVDS and quickly decided after the first letter to tech support. Thank you all.
by
0 like 0 dislike
Most likely the name servers FirstVDS the information is different. I would advise You (or rather the customer) to contact our support team, will help.
And so the edited file handles or through ISPmanager? need in ISPmanager, as it changes the serial of the zone and notifies the external server that is not a bad thing to update the domain information.
\r
PS: ns3.firstvds.ru does not exist — it is better to remove (and from the settings ISPmanager)
by
0 like 0 dislike
You should contact tech support. The people there are pretty adequate.
by
0 like 0 dislike
And the second DNS server is available?
\r
Generally long understood — personally assembled the DNS server is not rewarding. Much easier to carry for 40 cents a DNS server for a year and not sweating.
by
0 like 0 dislike
As I understand it — steers master dnsom himself firstvds?
Then there are a couple of questions:
1. You have your own DNS server on a VDS? Then why in the zone is not it?
2. If it's not in the web interface firstvds you can specify that their will be dns as slave?
3. a) If Yes — then do your master, to their slave
b) If not — try, if possible, make your a slave to them and see how does the area at the time of changing ip, and, what's most important — what key?
\r
If I misunderstood you — please clarify. If you have questions — write ;)
by
0 like 0 dislike
There seems to have some troubles on the servers, he is already a few days into DNS'AMI
by
0 like 0 dislike
you changes to make the area a on the primary server?
\r
get the picture of what you are doing changes on the secondary and primary after 3 hours frays your records.
\r
I mean, what do the handles and be sure to primari ns1.firstvds.ru
write a record change the series, it is written as a date, and in the end change number (00 — 99)what number postate not so important, the main thing that it differed from the previously entered date is also not desirable to change.
\r
ps
try the following
sub.domain.ru. A ipaddr
\r
note after completing the domain is a dot.
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
0 like 0 dislike
6 answers
110,608 questions
257,186 answers
0 comments
27,101 users