Amigos,
Estou tendo alguns problemas para configurar o DNS.
Vamos lá:
os meus arquivos:
named.conf.options
Código :options { directory "/var/cache/bind"; // If there is a firewall between you and nameservers you want // to talk to, you might need to uncomment the query-source // directive below. Previous versions of BIND always asked // questions using port 53, but BIND 8.1 and later use an unprivileged // port by default. // query-source address * port 53; // If your ISP provided one or more IP addresses for stable // nameservers, you probably want to use them as forwarders. // Uncomment the following block, and insert the addresses replacing // the all-0's placeholder. // forwarders { // 0.0.0.0; // }; auth-nxdomain no; # conform to RFC1035 };
named.conf
Código :include "/etc/bind/named.conf.options"; // prime the server with knowledge of the root servers zone "." { type hint; file "/etc/bind/db.root"; }; // be authoritative for the localhost forward and reverse zones, and for // broadcast zones as per RFC 1912 zone "localhost" { type master; file "/etc/bind/db.local"; }; zone "127.in-addr.arpa" { type master; file "/etc/bind/db.127"; }; zone "0.in-addr.arpa" { type master; file "/etc/bind/db.0"; }; zone "255.in-addr.arpa" { type master; file "/etc/bind/db.255"; }; zone "framosip.sytes.net"{ type master; file "/slave/dns/db-framosip"; }; zone "0.168.192.in-addr.arpa"{ type master; file "/slave/dns/db-framosip.rev"; }; include "/etc/bind/named.conf.local";
db-framosip:
Código :$ORIGIN framosip.sytes.net. $TTL 3600 @ IN SOA fr01 root ( 2 500 300 2w 1w ) @ IN NS fr01 @ IN MX 1 fr01 fr01 IN A 192.168.0.1 fr02 IN A 192.168.0.2
db-framosip.rev:
Código :$TTL 3600 @ IN SOA fr01 root ( 22 500 300 2w 1w ) @ IN NS fr01 @ IN MX 1 fr01 1 IN PTR fr01 2 IN PTR fr02
vamos aos problemas:
1º Quando dou um named-checkconf db-framosip o que retorna é:
Código :db-framosip:1: unknown option '$ORIGIN' db-framosip:17: unexpected token near end of file
2º Minha conexão é ADSL(VELOx - RJ), então quando o velox conecta, ele limpa o meu arquivo resolv.conf e coloca os NAMESERVERs do velox, ou seja, a minha configuração do DNS no resolv.conf vai pro espaço...alguma ideia pra resolver isso?
abraços!