LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   DNS Zone Files (https://www.linuxquestions.org/questions/linux-newbie-8/dns-zone-files-330555/)

Swakoo 06-05-2005 09:54 AM

DNS Zone Files
 
Hi guys, got a few question..

I got 2 DNS Servers, one is controlled by Plesk Webserver application as it is running email too. The other, is a manual DNS server, meaning to say I enter the zone file manually myself.

I noted that among the many domains I created in both servers.. some of the zone files are highlighted in green, some of them not. Yet I can't find the differences. Anyone got any idea? I thought green means executable?
Its the same for both sets of zone files in the respective servers.


Next, inside the zone file, in the one by plesk under $TTL 86400, the number is in purple
The one in the other server, it is in Red.

I realise numbers are all in Red, but onlyh in plesk at that portion it is in Purple. How so?

thanks

saman007uk 06-05-2005 10:54 AM

What editor are you using to view the files? If you are using vi or nvi, don't worry since they sometimes colour code line in order to help in with programming. It might be that the default settings for vi is different on one server than another.

Also, for the hosts file do this in a shell to see if they are executable or not:
Code:

ls -la file
any 'x' in th epremissions column mean that the file is executable.

Swakoo 06-05-2005 08:19 PM

how come some host file will be executable one?

Swakoo 06-22-2005 04:54 AM

i did what you mention, all doesn't have 'x'

but how come will have green and grey (standard) colour difference among the zone files?


Some more question about Zone/DNS..

I have 2 DNS server specified, Primary and Secondary. How does DNS work here?
Will name query request always seek Primary server first, and only seek secondary if primary fails? or does it always rotate between the 2?

Cos recently, one of my zone files have different IP address to the Domain Name in the primary(Correct IP) and secondary(Wrong IP), and all these while, it was correct till suddenly today it pointed to the wrong one (that's where I realise the secondary DNS is wrong). So thats what set me thinking....


Secondly,

as mention i have 2 dns servers; one a designated primary, the other secondary

but in my /etc/named.conf

i specify the location of the zone files, but for both sides, the 'type' is master. does it matter?

Please advice


All times are GMT -5. The time now is 04:14 PM.