+ Responder ao Tópico



  1. #1

    Padrão DUVIDAS BIND ( Fedora9)

    Olá pessoal,

    É o seguinte, sou novato no mundo linux, estou montando um servidor para acessar uma pagina Intranet na minha empresa, no proprio servidor se eu colocar www.cdc.com.br ela abre normalmente, e nas estações se eu colocar o ip do servidor 192.168.1.130 abre normalmente, masssssss se eu colocar com o nome http://www.cdc.com.br não abre, não sei se é problema no BIND ou no APACHE, estou postando abaixo minhas configurações:

    Segue:

    /etc/resolv.conf
    search cdc.com.br
    nameserver 192.168.1.130

    ------------------------------------

    /etc/hosts
    127.0.0.1 servidor localhost.localdomain localhost
    192.168.1.130 servidor.cdc.com.br servidor

    Obs: Hostname: servidor
    ------------------------------------

    /etc/host.conf
    order bind,hosts
    multi on
    -------------------------------------

    /etc/named.conf

    options {
    listen-on port 53 { 127.0.0.1; 192.168.1.130;};
    forwarders {200.204.0.10; 200.204.0.138;};
    listen-on-v6 port 53 { ::1; };
    directory "/var/named";
    dump-file "/var/named/data/cache_dump.db";
    statistics-file "/var/named/data/named_stats.txt";
    memstatistics-file "/var/named/data/named_mem_stats.txt";
    allow-query { localhost; };
    recursion yes;
    };
    logging {
    channel default_debug {
    file "data/named.run";
    severity dynamic;
    };
    };

    zone "." IN {
    type hint;
    file "named.ca";
    };

    zone "cdc.com.br" {
    type master;
    file "cdc.com.br.hosts";
    };

    zone "1.168.192.in-addr.arpa" IN {
    type master;
    file "1.168.192.rever";
    };
    include "/etc/named.rfc1912.zones";

    ------------------------------------------
    /var/named/cdc.com.br.hosts
    $ttl 38400
    @ IN SOA servidor.cdc.com.br. root.cdc.com.br. (
    2004071501; Serial
    28800; Refresh
    14400; Retry
    3600000; Expire
    86400 ); Minimum
    IN NS servidor.cdc.com.br.

    www IN A 192.168.1.130
    ftp IN A 192.168.1.130
    -------------------------------------------

    Ao fazer o teste com nslookup segue a resposta:

    [root@servidor ~]# nslookup www.cdc.com.br
    Server: 192.168.1.130
    Address: 192.168.1.130#53
    Name: www.cdc.com.br
    Address: 192.168.1.130



    Está com alguma coisa errada ???

  2. #2

    Padrão

    Fala Vander blz! É o seguinte tenta usar sua config do Named como vou colocar abaixo

    Lembre-se de colocar seu IP onde for necessário

    Código :
     
    ---------------------------------------------------------------------
    named.conf
    ---------------------------------------------------------------------
    [COLOR=#333333][FONT=Arial][SIZE=3][root@fsrv etc]# [B]vim /etc/named.conf[/B][/SIZE][/FONT][/COLOR]
    [COLOR=#333333][FONT=Arial]// generated by named-bootconf.pl[/FONT][/COLOR]
     
    [FONT=Arial][COLOR=#333333]options {[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]directory "/var/named";[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]/*[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]* If there is a firewall between you and nameservers you want[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]* to talk to, you might need to uncomment the query-source[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]* directive below. Previous versions of BIND always asked[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]* questions using port 53, but BIND 8.1 uses an unprivileged[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]* port by default.[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]*/[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]query-source address * port 53;[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]listen-on { 127.0.0.1/32; 192.168.1.2/32; };[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333][B]allow-recursion { 127.0.0.1/32; 10.114.60.0/24; };[/B][/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]};[/COLOR][/FONT]
     
    [FONT=Arial][COLOR=#333333]//[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]// a caching only nameserver config[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]//[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]controls {[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]inet 127.0.0.1 allow { localhost; } keys { rndckey; };[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]};[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]zone "." IN {[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]type hint;[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]file "named.ca";[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]};[/COLOR][/FONT]
     
    [FONT=Arial][COLOR=#333333]zone "localhost" IN {[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]type master;[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]file "localhost.zone";[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]allow-update { none; };[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]};[/COLOR][/FONT]
     
    [FONT=Arial][COLOR=#333333]zone "0.0.127.in-addr.arpa" IN {[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]type master;[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]file "named.local";[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]allow-update { none; };[/COLOR][/FONT]
    [FONT=Arial][COLOR=#333333]};[/COLOR][/FONT]
     
    [FONT=Arial][COLOR=#333333][B]zone "[/B][COLOR=#000000]cdc.com.br[/COLOR][B]" IN {[/B][/COLOR][/FONT]
    [COLOR=#333333][B][FONT=Arial]type master;[/FONT][/B][/COLOR]
    [COLOR=#333333][B][FONT=Arial]file "db.[/FONT][/B][FONT=Arial][COLOR=#000000]cdc.com.br[/COLOR][B]";[/B][/FONT]
    [B][FONT=Arial]};[/FONT][/B]
     
    [B][FONT=Arial]zone "[/FONT][/B][FONT=Arial][COLOR=#000000]1.168.192.in-addr.arpa[/COLOR][B]" IN {[/B][/FONT]
    [B][FONT=Arial]type master;[/FONT][/B]
    [B][FONT=Arial]file "db.10.114.60.0";[/FONT][/B]
    [B][FONT=Arial]};[/FONT][/B]
     
    [FONT=Arial]include "/etc/rndc.key";[/FONT]
     
    [/COLOR]
     
     
     
    ----------------------------------------------------------------------
    cdc.com.br.hosts
    -----------------------------------------------------------------------
    [COLOR=#333333][FONT=Arial][SIZE=3]$TTL 86400[/SIZE][/FONT][/COLOR]
    [SIZE=3][FONT=Arial][COLOR=#333333]@ IN SOA [COLOR=#000000]servidor.cdc.com.br[/COLOR]. admin.[COLOR=#000000]cdc.com.br[/COLOR]. ([/COLOR][/FONT][/SIZE]
    [COLOR=#333333][SIZE=3][FONT=Arial]2008080511 ; serial, todays date + todays serial #[/FONT][/SIZE][/COLOR]
    [COLOR=#333333][SIZE=3][FONT=Arial]28800 ; refresh, seconds[/FONT][/SIZE][/COLOR]
    [COLOR=#333333][SIZE=3][FONT=Arial]7200 ; retry, seconds[/FONT][/SIZE][/COLOR]
    [COLOR=#333333][SIZE=3][FONT=Arial]604800 ; expire, seconds[/FONT][/SIZE][/COLOR]
    [COLOR=#333333][SIZE=3][FONT=Arial]86400 ) ; minimum, seconds[/FONT][/SIZE][/COLOR]
    [COLOR=#333333][SIZE=3][FONT=Arial];[/FONT][/SIZE][/COLOR]
    [COLOR=#333333][SIZE=3][FONT=Arial]NS [COLOR=#000000]servidor.cdc.com.br[/COLOR]. ; DNS Primario[/FONT][/SIZE]
    [SIZE=3][FONT=Arial]NS [COLOR=#000000]servidor1.cdc.com.br[/COLOR]. ; DNS Secundario isso se você possuir um[/FONT][/SIZE]
    [SIZE=3][FONT=Arial];[/FONT][/SIZE][/COLOR]
    [COLOR=#333333][FONT=Arial][SIZE=3]MX 10 fitautomoveis.com.br.[/SIZE][/FONT][/COLOR]
    [COLOR=#333333][FONT=Arial][SIZE=3][COLOR=#000000]cdc.com.br[/COLOR]. A 192.168.0.31 ; Aqui coloque o IP do Servidor[/SIZE][/FONT]
    [SIZE=3][FONT=Arial]www A 192.168.0.31 ; Aqui coloque o IP do Servidor[/FONT][/SIZE][/COLOR]
    [COLOR=#333333][FONT=Arial][SIZE=3]www CNAME [COLOR=#333333][FONT=Arial][SIZE=3][COLOR=#000000]cdc.com.br.[/COLOR][/SIZE][/FONT][/COLOR]
    mail CNAME [COLOR=#333333][FONT=Arial][SIZE=3][COLOR=#000000]cdc.com.br[/COLOR][/SIZE][/FONT][/COLOR].
    ftp CNAME [COLOR=#333333][FONT=Arial][SIZE=3][COLOR=#000000]cdc.com.br[/COLOR][/SIZE][/FONT][/COLOR].[/SIZE][/FONT][/COLOR]

  3. #3

    Padrão

    Cara, muito obrigado pela força.

    É o seguinte , primeiramente o meu named.conf por padrão ele só vem :

    };
    zone "." IN {
    type hint;
    file "named.ca";

    ai eu adicionei o meu dominio cdc.com.br, mais os outros que vc indicou , não possui, é preciso adicionar manualmente isso?


    Valew mesmo.