Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Quote:
* Then execute this command in Shell window:
Code:
pico /var/named/montadaphp.net.db
Add the following line anywhere in the file:
Code:
*.montadaphp.net. IN A 66.66.66.66
Save and close the file
Restart your Named & httpd services
or restart the whole webserver
|
Warning, doing just that will have no effect !!!
DNS files have a serial ID, that is used to tell the other DSN server which version of the zone is served, without thos extra servers to download it.
If you just change that line and don't update the id, the modification will only be valid for PC that uses your DNS server as default for their connections.
Look at this random zone file, I've put the serial number in bold.
The serial number is formated as "year month day number", without spaces.
So, for today, it would start like 200708151 for the first modification, then 200708152 for the second, and so on...
Code:
;
; Zone file for debuntu.foo
;
; The full zone file
;
$TTL 3D
@ IN SOA ns.debuntu.foo. chantra.debuntu.foo. (
200608081 ; serial, todays date + todays serial #
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds
;
NS ns ; Inet Address of name server
MX 10 mail ; Primary Mail Exchanger
MX 20 mail2 ; Secondary Mail Exchanger
;
ns A 192.168.1.5
www CNAME www.debuntu.org.
ftp CNAME ns
gw A 192.168.1.1
TXT "Network gateway"
mail A 192.168.1.2
mail2 CNAME otherbox
otherbox A 192.168.1.3
TXT "Otherbox"
__________________
Only a biker knows why a dog sticks his head out the window.
|