Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    ping: unknown host - PLEASE HELP

    I have 2 computers both having RH9
    One is a gateway
    And I am trying to set the other computer as the DNS server.

    My first priorty is to setup the DNS SERVER as a local DNS server.

    GATEWAY Information
    IP -
    Hostname - gw.myintranet.local
    Iptables enabled and all policies are ACCEPT

    resolv.conf in GATEWAY: (not sure if this is important)
    search ns.myintranet.local

    hosts.conf in GATEWAY: (not sure if this is important) localhost.localadmin localhost

    DNS SERVER information
    IP -
    Hostname - ns.myintranet.local

    resolv.conf in DNS SERVER:
    search ns.myintranet.local

    hosts.conf in DNS SERVER: localhost.localadmin localhost ns.myintranet.local ns

    Running "named" on this box

    ps -aux|grep "named" returns the fllowing

    named 3246 0.0 0.8 29708 1088 ? S 08:05 0:00 [named]
    root 4144 0.0 0.0 172 16 pts/1 R 11:59 0:00 grep named

    I am able to ping from both computers to each other using the ip address. But I want to be able to ping FROM the GATEWAY TO the DNS SERVER using the name ns.myintranet.local

    Currently "ping ns.myintranet.local" in GATEWAY gives me
    ping: unknown host ns.myintranet.local

    Please help.

    (Adding ns.myintranet.local ns in hosts file in GATEWAY solves the problem, but that is like duplicating the hosts information everywhere, which i want to avoid.)

  2. #2
    wht do u want.. intenet domain name server or site specific domain name server ?

  3. #3
    Linux Enthusiast Opnosforatou's Avatar
    Join Date
    Dec 2003
    Vleuten, The Netherlands
    I guess you don't want to run the DNS service on you Gateway, guess this one will also make the connection to the internet.

    PC1 = Gateway, PC2 = DNS server..

    Tell PC1 in the resolv.conf that the nameserver is the IP of PC2.
    Configure PC2 with all the needed zone information, incl de reverse zones.
    If you want DNS requests to parse through the DNS server first then be forwarden to your ISPs DNS server, be sure to include the IP address of you ISP in the /etc/named.conf
    options {
            directory "/var/named";
            query-source address * port 53;
            forwarders {
            allow-query {; localhost; };
            allow-recursion {; localhost; };
    zone "." {
            type hint;
            file "root.hints";
    zone "" {
            type master;
            file "zone/127.0.0";
    zone "" {
            notify no;
            type master;
            file "zone/";
    zone "" {
            notify no;
            type master;
            file "zone/reverse.rev";
    Where w.x.y.z is the IP of the first DNS server and w1.x1.y1.z1 the second.
    the options:
    allow-query {; localhost; };
    allow-recursion {; localhost; };
    will only allow DNS queries from your internal network, In this example the IP range for the internal network is : 192.168.0.x

    Don't forget to schedule a cron job to update the root.hints every month.
    ---[ MS09-99896 - Vulnerability in All MS Windows OS ; Using Windows Could Allow Remote Code Execution. ]---
    Hardware: Asus P4P800, 1GB, P4-3Ghz, Asus V9950, Maxtor ATA HD\'s, 3Com GBit lan, Audigy ZS Plat.

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts