Set CNAME2011/05/25 |
If you'd like to set another name to your Host, define CNAME record in zone file.
|
|
[1] | Set CNAME record in zone file. |
[root@dlp ~]#
$TTL vi /var/named/srv.world.lan 86400 @ IN SOA dlp.srv.world. root.srv.world. ( # update serial 2011052502 ;Serial 3600 ;Refresh 1800 ;Retry 604800 ;Expire 86400 ;Minimum TTL ) IN NS dlp.srv.world. IN A 10.0.0.30 IN MX 10 dlp.srv.world. IN A 10.0.0.30 # [ aliase IN CNAME server's name ] ftp IN CNAME dlp.srv.world. systemctl reload named.service
[root@dlp ~]#
dig ftp.srv.world.
; <<>> DiG 9.8.0-P1-RedHat-9.8.0-3.P1.fc15 <<>> ftp.srv.world.
;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21414 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;ftp.srv.world. IN A
;; ANSWER SECTION:
ftp.srv.world. 86400 IN CNAME dlp.srv.world. dlp.srv.world. 86400 IN A 10.0.0.30
;; AUTHORITY SECTION:
;; Query time: 0 msecsrv.world. 86400 IN NS dlp.srv.world.
;; SERVER: 10.0.0.30#53(10.0.0.30) ;; WHEN: Tue May 25 23:18:35 2011 ;; MSG SIZE rcvd: 82 |
Sponsored Link |