Gente peguei este artigo aqui em baixo de como fazer o DNS, minha dúvida e a seguinte, minha maquina tem o ip real, 222.243.345.344(ip ficticio) devo substituir o IP 192.168.0.1 q esta no artigo para o meu IP real??
seudominio.com.br.db
seudominio.com.br. IN SOA seuservidor.seudominio.com.br. root.seuservidor.seudominio.com.br. (
950000
86400
3600
3600000
3600 )
seudominio.usp.br. IN A 192.168.0.1
seudominio.usp.br. IN NS seuservidor.seudominio.com.br.
seudominio.usp.br. IN MX 5 seuservidordeemail.seudominio.com.br.
www IN A 192.168.0.1
seudominio.com.br.rev
0.168.192.in-addr.arpa. IN SOA seuservidor.seudominio.com.br. root.seuservidor.seudominio.com.br. (
950000
86400
3600
3600000
3600 )
0.168.192.in-addr.arpa. IN NS seuservidor.seudominio.com.br.
1 IN PTR seuservidor.seudominio.com.br.
named.conf
/ generated by named-bootconf.pl
options {
directory "/var/named";
/*
* 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 uses an unprivileged
* port by default.
*/
version "[EF DNS SERVER]";
query-source address * port 53;
dump-file "/var/named/dump/named_dump.db";
statistics-file "/var/named/dump/named.stats";
allow-transfer { 192.168.0.1 ; };
// memstatistics-file "/var/named/dump/named.memstats";
// remove this next line if you want named to listen on
// all available interfaces, or adjust add new ones as
// you see fit
listen-on { 192.168.0.1; 127.0.0.1; };
};
//
// a caching only nameserver config
//
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
zone "seudominio.com.br" {
type master;
file "seudominio.com.br.db";
};
zone "0.168.192.in-addr.arpa" {
type master;
file "seudominio.com.br.rev";
};
//
// a shared secret for the rndc tool
// this key must be the same one that is in the
// /etc/rndc.conf file
//
key key_rndc {
algorithm "hmac-md5";
secret "k9uIPpgbI+lUL4MbjpGOlA==";
};
//
// a control channel for the new rndc tool
//
controls {
inet 127.0.0.1 allow { localhost; } keys { key_rndc; };
};