Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I have craeted DNS Server for LAN on my FC3 machin. I am ok with domain name to IP address resolution . but not able to resovle IP address ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2006
    Posts
    2

    Dns


    Hi,
    I have craeted DNS Server for LAN on my FC3 machin. I am ok with domain name to IP address resolution . but not able to resovle IP address in to Domain name. i guess i hav some trouble with reverse lookup file. the content of reserse lookup file are as bellow

    $TTL 86400
    @ IN SOA testpage.com. hostmaster.testpage.com. (
    9348750 ; serial
    28800 ; refresh
    7200 ; retry
    604800 ; expire
    86400 ; ttl
    )


    @ IN NS testpage.com.
    27 IN PTR one.testpage.com.
    191 IN PTR two.testpage.com

    if i ping one.testpage.com its resolving it to ip 192.168.0.27 ....its ok
    but if i ping 192.168.0.27 it not resolving it to one.testpage.com.....

    your help is needed.

    Thanks,
    Rajesh

  2. #2
    Linux Newbie jagernout's Avatar
    Join Date
    May 2006
    Location
    Indonesia
    Posts
    102
    Quote Originally Posted by ghugerajesh2
    Hi,
    I have craeted DNS Server for LAN on my FC3 machin. I am ok with domain name to IP address resolution . but not able to resovle IP address in to Domain name. i guess i hav some trouble with reverse lookup file. the content of reserse lookup file are as bellow

    $TTL 86400
    @ IN SOA testpage.com. hostmaster.testpage.com. (
    9348750 ; serial
    28800 ; refresh
    7200 ; retry
    604800 ; expire
    86400 ; ttl
    )


    @ IN NS testpage.com.
    27 IN PTR one.testpage.com.
    191 IN PTR two.testpage.com

    if i ping one.testpage.com its resolving it to ip 192.168.0.27 ....its ok
    but if i ping 192.168.0.27 it not resolving it to one.testpage.com.....

    your help is needed.

    Thanks,
    Rajesh
    Hi, Your configuration it seems right to me. Try to check another configured file...such named.conf, hosts, your zone file. Perhaps you missed something.

    Regards,
    -JG-

  3. #3
    Linux Newbie Pythagoras's Avatar
    Join Date
    Aug 2006
    Location
    Moscow, Russia
    Posts
    205
    Hi ghugerajesh2!
    I'm not an expert in this subject, but as far as I remember DNS server doesn't convert IP to domain name. Each machine do it itself. For example, if you need to get google.com's IP you are sending request to nameserver, but if you need to get domain name for 'w.x.y.z' you are requesting w.x.y.z and it tells you it is a 'google.com'.
    2b|!2b, that is the question

    If substraction add to multiplication you will get a division.

    GDB has a 'break' feature. Why doesn't it have a 'fix' too?

    Registered Linux User #437662

  4. #4
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,134
    Here's what I have.

    This section is in my /etc/named.conf

    Code:
    /* Reverse lookups of hosts in my home: */
    zone "1.168.192.in-addr.arpa" IN {
            type master;
            file "named.192.168.1";
            allow-update { none; };
    };
    It refers to this file.

    Code:
    $TTL 259200
    @               IN      SOA     blue.localdomain. root.blue.localdomain. (
                    1               ; Serial number
                    10800           ; Refresh every 3 hours
                    3600            ; Retry every hour
                    3600000         ; Expire after 42 days
                    259200 )        ; Minimum Time to Live (TTL) of 3 days
    
                    IN      NS      blue.localdomain.
    
    1               IN      PTR     router.localdomain.
    2               IN      PTR     coffee.localdomain.
    3               IN      PTR     genius.localdomain.
    4               IN      PTR     moron.localdomain.
    5               IN      PTR     blue.localdomain.
    6               IN      PTR     rcgreen.localdomain.
    ; and so on... to 255
    So I get this.

    Code:
    rcgreen@blue:~$ nslookup 192.168.1.2
    Server:         127.0.0.1
    Address:        127.0.0.1#53
    
    2.1.168.192.in-addr.arpa        name = coffee.localdomain.
    
    rcgreen@blue:~$

Posting Permissions

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