[root@dns ~]# cat /etc/named.conf
acl lan { 192.168.1.0/24; };
options {
directory "/var/named";
recursion no;
};
zone "e-connecting.unas" IN {
file "e-connecting.unas.db";
type master;
allow-query { localhost; lan; };
};
zone "1.168.192.in-addr.arpa" IN {
file "1.168.192.in-addr.arpa.db";
type master;
allow-query { localhost; lan; };
};
[root@dns ~]# cat /var/named/e-connecting.unas.db
$ORIGIN e-connecting.unas.
$TTL 3600
@ SOA dns.e-connecting.unas. admin.e-connecting.unas. (
2009121801 ; Serial
30m ; Refresh
3m ; Retry
4w ; Expiry
30m ) ; Negative cache TTL
NS dns
NS vcenter
dns A 192.168.1.2
vcenter A 192.168.1.10
esx2 A 192.168.1.233
[root@dns ~]# cat /var/named/1.168.192.in-addr.arpa.db
$ORIGIN 1.168.192.in-addr.arpa.
$TTL 3600
@ SOA dns.e-connecting.unas. admin.e-connecting.unas. (
2009121802 ; Serial
30m ; Refresh
3m ; Retry
4w ; Expiry
30m ) ; Negative cache TTL
@ IN NS dns.e-connecting.unas.
10 IN PTR vcenter.e-connecting.unas.
233 IN PTR esx2.e-connecting.unas.
[root@dns ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
HWADDR="00:1D:60:FE:94:78"
NM_CONTROLLED="no"
ONBOOT="yes"
IPADDR=192.168.1.2
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=192.168.1.2
No hay comentarios.:
Publicar un comentario