Find the answer to your Linux question:
Results 1 to 5 of 5
Hi Forum (ps read 3w = world wide web) A consistent problem with DNS set up gave sever head ache even though this damm thing work but it does not ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Posts
    10

    DNS blues....


    Hi Forum

    (ps read 3w = world wide web)

    A consistent problem with DNS set up gave sever head ache even though this damm thing work but it does not do what I like to do or see. When I try use apache server with my specified url that onami.co.uk with 3w get kicked in from the DNS hosting company which is uk2.net I wonder where I am going wrong?

    Any way I have following setting for my DNS server.

    0/ On Red hat Enterprise 6 server

    1/ I have fully registered domain i.e. 3w.onami.co.uk with company 3 w uk2.net on their server conanical name exists.

    2/ I do NOT have static IP address at my premises instead dynamic address with router holding ip 192.168.1254 and allocating a IP to my DNS server 192.168.1.100

    3/ In /etc/named.conf file modified and to added zone record for 3w.onami.co.uk forward and onami.rev.zone for reverse zone check two files stored in /var/named/data/ directories.

    4/ when I ran “service named restart” I get response Stopping named [OK] starting named [OK]

    5/ After analysing /var/log/messages I get following details
    Code:
    tail /var/log/messages
    
    Aug 29 13:00:47 hawk named[5113]: zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
    
    Aug 29 13:00:47 hawk named[5113]: zone 1.168.192.in-addr.arpa/IN: loaded serial 2011082700
    
    Aug 29 13:00:47 hawk named[5113]: zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
    
    Aug 29 13:00:47 hawk named[5113]: zone localhost.localdomain/IN: loaded serial 0
    
    Aug 29 13:00:47 hawk named[5113]: zone localhost/IN: loaded serial 0
    
    Aug 29 13:00:47 hawk named[5113]: zone onami.co.uk/IN: loaded serial 2011082700
    
    Aug 29 13:00:47 hawk named[5113]: managed-keys-zone ./IN: loaded serial 16
    
    Aug 29 13:00:47 hawk named[5113]: zone 3w.onami.co.uk/IN: sending notifies (serial 2011082700)
    
    Aug 29 13:00:47 hawk named[5113]: zone 1.168.192.in-addr.arpa/IN: sending notifies (serial 2011082700)
    
    Aug 29 13:00:47 hawk named[5113]: running

    6/ When I ran dig command with 3w.onami.co.uk I get following details:

    Code:
    dig 3w.onami.co.uk
    ; <<>> DiG 9.7.3-RedHat-9.7.3-2.el6 <<>> 3w.onami.co.uk
    
    ;; global options: +cmd
    
    ;; Got answer:
    
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15297
    
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    
    ;3w.onami.co.uk.		IN	A
    
    ;; ANSWER SECTION:
    
    3w.onami.co.uk.	86400	IN	CNAME	3w.onami.co.uk.
    
    3w.onami.co.uk.		26055	IN	A	83.170.69.51
    
    ;; Query time: 23 msec
    
    ;; SERVER: 192.168.1.254#53(192.168.1.254)
    
    ;; WHEN: Mon Aug 29 13:01:32 2011
    
    ;; MSG SIZE  rcvd: 63

    But when I try to use in firefox 3w.onami.co.uk instead company's web site ...nothing..but sausage

    I am well and truly pI$$$$$$£

    If any one knows the remedy for this ….

    Thanks forum

    shy

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Can you post what your DNS zone looks like? Would help. Also is 83.170.69.51 your web servers ip address?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Linux User
    Join Date
    Dec 2009
    Posts
    264
    Hi,
    eaven if I haven't seen the configuration yet, there some things in the log that seem to be wrong:
    Aug 29 13:00:47 hawk named[5113]: zone onami.co.uk/IN: loaded serial 2011082700
    Aug 29 13:00:47 hawk named[5113]: zone 3w.onami.co.uk/IN: sending notifies (serial 2011082700)
    May I'm wrong but the way I understood bind you should only have the zone "onami.co.uk" in witch "w3.onami.co.uk" and all other sub-addresses are defined.
    Like add:
    www CNAME @
    into your onami.co.uk zone and deactivate the zone w3.onami.co.uk.
    You also should change the serials of the zones, they must never be the same. (serial 2011082700)

    If you only have the zone "onami.co.uk" I misinterpreted the log.

    You can also use the command host or nslookup to check your DNS settings.
    Code:
    host w3.onami.co.uk localhost
    Will tell you what the server you are on answers.
    Code:
    host w3.onami.co.uk
    Will tell you what your default server answers.

    Example:
    Code:
    user@Server:/etc$ host www.zombynet.local localhost
    Using domain server:
    Name: localhost
    Address: 127.0.0.1#53
    Aliases:
    
    www.zombynet.local is an alias for zombynet.local.
    zombynet.local has address 192.168.1.105

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Feb 2010
    Posts
    10
    Hi guys

    Here is my zone data files
    Code:
    $TTL      1d
    ;
    ;       onami.co.uk domain database zone file i.e onami.co.uk.zone
    ;       created by shylock_1
    ;       27/08/2011     22:05:09
    ;
    @  IN       SOA    hawk.onami.co.uk.  eagle.hawk.onami.co.uk. (
                                               2011082700      ; serial
                                               12h             ; refresh
                                               15m             ; retry
                                               3w              ; expiry
    	                                   2h              ; minimum
                                               )
            ; Define the name server
            ;
    
              IN       NS     hawk.onami.co.uk.          ; primary dns server RH6EL
              IN       NS     eagle.onami.co.uk.          ; this could be secondry dns but currently in sleep/shagging
            
    hawk      IN       A      192.168.1.100
    eagle     IN       A      192.168.1.110
    
    
    ; Define aliases in this zone
    www     IN       CNAME  hawk.onami.co.uk.     ; all for one  and  one for all
    mail      IN       CNAME  hawk.onami.co.uk.
    pop       IN       CNAME  hawk.onami.co.uk.
    AND here is reverse zone file..
    Code:
    $TTL      1d
    
    ;
    ; Onami.co.uk Reverse zone tracking file  onami.rev.zone
    ; Created on 27/08/2011
    ; by shylock_1
    
    ; Address to hostname mappings     this is the address of router 192.168.1.254
    ;                                  IP Address of the server is   192.168.1.100
    
    @   IN SOA hawk.onami.co.uk. eagle.hawk.onami.co.uk. (
                          2011082700       ; Serial
                          12h              ; Refresh
                          15m              ; Retry
                          3w               ; Expire
                          2h               ; Minimum
                         )
       IN     NS     hawk.onami.co.uk.
       IN     NS     eagle.onami.co.uk.
    
    2  IN     PTR     hawk.onami.co.uk
    3  IN     PTR     eagle.onami.co.uk
    Thanks for replies.

    shy

  6. #5
    Just Joined!
    Join Date
    Feb 2010
    Posts
    10
    HERE is the yield of

    Code:
    [ shylock_1]# host 3w.onami.co.uk
    3w.onami.co.uk is an alias for onami.co.uk.
    onami.co.uk has address 83.170.69.51
    onami.co.uk mail is handled by 0 uk2mxarray2.uk2.net.
    [shylock_1]# host 3w.onami.co.uk localhost
    Using domain server:
    Name: localhost
    Address: 127.0.0.1#53
    Aliases: 
    
    3w.onami.co.uk is an alias for hawk.onami.co.uk.
    hawk.onami.co.uk has address 192.168.1.100

Posting Permissions

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