DNS for linux RedHat

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat DNS for linux RedHat
# 1  
Old 01-28-2011
DNS for linux RedHat

Dear members,

I am trying to set up a simple DNS but the problem is that when I ping the name of the IP address in the Reverse file, it does not recognise it. My code are as follows:

Note that my IP address is 172.22.45.237.

In my /etc/named.conf file, I have added the following lines
Code:
zone  "tuffy.org" { 
        type master; 
        file  "local.zone"; 
};

zone  "45.22.172.in-addr.arpa" {
        type master;
        file  "local.rev";
};

In my /var/named/local.zone file, I have the following codes:
Code:
@       IN      SOA     tuffy.org. root.tuffy.org. (
                         1998121401         ; Serial
                               604800         ; Refresh
                                86400          ; Retry
                             2419200         ; Expire
                              604800 )       ; Default TTL
     
             IN      NS      dns.tuffy.org.
             
www IN A 172.22.45.237

dns IN A 172.22.45.237

In my /var/named/local.rev file, I have the following codes:
Code:
@       IN      SOA     tuffy.org. root.tuffy.org. (
                          1998121401         ; Serial
                              604800         ; Refresh
                               86400         ; Retry
                             2419200         ; Expire
                            604800 )       ; Default TTL
     
             IN      NS      dns.foo.org.
237 IN PTR www.tuffy.org.

237 IN PTR dns.tuffy.org.

When I ping either dns.tuffy.org or the other one, it says that the name cannot be recognised. Can anyone help me to correct the error in my files?
# 2  
Old 01-28-2011
this may be a silly question, but what does your /etc/resolv.conf and /etc/nsswitch.conf look like on the box you're resolving from?
# 3  
Old 01-28-2011
My /etc/resolv.conf file looks like this
Code:
domain tuffy.org
search tuffy.org
nameserver 172.22.45.237

As for /etc/nsswitch.conf, i didn't know that we should modify it. What should I modify in this file?
# 4  
Old 01-28-2011
the /etc/nsswitch.conf "hosts:" line should contain at least "dns". I'm quite sure it's the default these days anyway.

One question, the one NS record in your reverse file:

Code:
 dns.foo.org.

Is that intentionally "foo", and not "tuffy" ?
# 5  
Old 01-28-2011
Its a mistake I have made while typing. It should be
Code:
dns.tuffy.org

. Even though when I try to ping or do nslookup with the IP-address, it does not return the domain name
# 6  
Old 01-28-2011
Well, you have 2 PTR records. That's not allowed (at least I don't think so, but the RFC may state otherwise).

I would suggest you only have one "dns" PTR record, and make "www" a CNAME (but not in the reverse file Smilie
# 7  
Old 01-28-2011
Ok, I will try that. Thanks for your help
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Difference Redhat Linux/RH Enterprise Linux

what is the difference between Redhat Linux and Redhat Enterprise Linux. whereas Redhat linux have Server installation options too. (2 Replies)
Discussion started by: hananabbas
2 Replies

2. Red Hat

DNS issue in Redhat 9

Hi all m newbie in linux and trying to setup my internal DNS server for local network.After messing with DNS for hours i am posting this. i have configured /etc/resolve.conf, hostname with domain name in /etc/sysconfig/network file,/etc/hosts file with local host entry and zone file... (1 Reply)
Discussion started by: Vaibhav.T
1 Replies

3. IP Networking

Configuring DNS Server in Linux Redhat

Can someone help with a detail step-by-step oh how to configure DNS server on Linux Server. - I need to have 3 IP addresses map to a single hostname. for clients I'm a Linux rookie. Thanks Oscar (1 Reply)
Discussion started by: FrankOscar
1 Replies

4. UNIX for Advanced & Expert Users

DNS server choice: Windows DNS vs Linux BIND

I'd like to get some opnions on choosing DNS server: Windows DNS vs Linux BIND comparrsion: 1) managment, easy of use 2) Security 3) features 4) peformance 5) ?? I personally prefer Windows DNS server for management, it supports GUI and command line. But I am not sure about security... (2 Replies)
Discussion started by: honglus
2 Replies

5. Red Hat

Dns configuration error in Redhat

Dear All I want to configure DNS in redhat linux. i am following these steps but when i restart the services it is showing status failed. Please any body can help me on urgent basis. #service named restart Stopping named: Starting named: ---------Edited in named.conf... (2 Replies)
Discussion started by: sahu.tapan
2 Replies

6. UNIX for Dummies Questions & Answers

Redhat DNS Entry

I have a installed Redhat Linux v5 on a new HP Pavillon PC. It has a dual boot with Vista. Booting from Vista, I can connect to the internet. However with Redhat I cannot connect to the internet. I looked at the /etc/resolv.conf file in Redhat and there is no DNS entry there. From where do I... (28 Replies)
Discussion started by: AnilAnand
28 Replies

7. UNIX for Dummies Questions & Answers

setup a DNS server for my redhat server

Using Redhat Linux Enterprise AS 4 can someone teach me how to setup a dns server for my webserver? i've registered a domainname at mydomain.com but when i type in the domain i register i cannot enter to my webserver. someone told me that it is related with the DNS setting on my server. i've... (2 Replies)
Discussion started by: kaixiang88
2 Replies

8. Ubuntu

Linux Redhat ES 4.0 - DNS Config Issues

Hello all, I've a very strange thing hapenning in my Sys, I've configured the IP, DNS eveything for my internat connection, but Im only able to browse Redhat.com websites. I cant open anyother site!!! :eek: Im sure the internet is configured 'coz it displays the list of avail updates for... (11 Replies)
Discussion started by: AbhijithS
11 Replies

9. Linux

LINUX 9 IPTABLES and DNS

I have installed a linux 9 router/firewall and have issues with outside DNS queries making it in. here are my IPTABLE rules, can anyone make some suggestions? ETH1 is my outside facing Interface, ETH0 is my inside facing interface. Accept If input interface is not eth1 Accept If protocol... (6 Replies)
Discussion started by: frankkahle
6 Replies

10. IP Networking

Linux DNS

I really need help here. I am trying to sort out dns on a linux machine, but no matter what i do it just doesnt seem to work. I am sorting out dns for a domain, but even after putting the entries in /etc/named.boot for the localhost nslookup to work, referencing the correct file in /var/named -... (4 Replies)
Discussion started by: alwayslearningunix
4 Replies
Login or Register to Ask a Question