Resolving name with ip and intranet setup

Discussion in 'Installation/Configuration' started by mnzava, Aug 20, 2007.

  1. mnzava

    mnzava Member

    Hi all,
    I managed to install ISPConfig in my CentOs 5 machine based on "CentOs 5 perfect setup".
    NB: I installed centOs using text mode and not GUI
    However i'm facing two problems
    1. How do i resolve IP address with computer Name. I can only access my machine remotely through ip address and not computer name.
      Here is how i've set it up.
      Computer name: wserver
      Domain: dsm.or.tz

      but when i write http://wserver.dsm.or.tz page cannot be displayed. If i use its IP address http://192.168.0.20 things goes perfect.

      my /etc/hosts looks like this
      Code:
      # Do not remove the following line, or various programs
      # that require network functionality will fail.
      127.0.0.1       localhost.localdomain localhost
      192.168.0.20    wserver.dsm.or.tz wserver
      ::1     localhost6.localdomain6 localhost6
      
      my resolv.conf looks like this...where .3 is my primary AD(windows 2003 Server) and .6 is my secondary AD(2003 server)
      Code:
      search dsm.or.tz
      nameserver 192.168.0.3
      nameserver 192.168.0.6
      
      my host.conf
      Code:
      order hosts,bind
      
      My /etc/sysconfig/network looks like this

      Code:
      NETWORKING=yes
      HOSTNAME=wserver
      
      The only problem is resolving name with IP.
      I am within my company network and am trying to test ISPCONFIG inside my company before i move any further. My network uses static IP.
    1. Second problem is how do i use the same ip address of the machine that i've installed ISPCONFIG to host my website. The problem am facing now is that i get this message "Shared IP Address" when i try to access using its ip address after site setup.

    Thanks in advance for any help from you?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    The problem is that the hostname doesn't exist in DNS:

    Code:
    server1:~# dig wserver.dsm.or.tz
    
    ; <<>> DiG 9.3.4 <<>> wserver.dsm.or.tz
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 46519
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;wserver.dsm.or.tz.             IN      A
    
    ;; AUTHORITY SECTION:
    or.tz.                  10800   IN      SOA     nic.co.tz. bsangiwa.nic.co.tz. 2007080601 3600 3600 2592000 14400
    
    ;; Query time: 340 msec
    ;; SERVER: 213.191.92.84#53(213.191.92.84)
    ;; WHEN: Tue Aug 21 15:52:52 2007
    ;; MSG SIZE  rcvd: 87
    
    server1:~#
    If you want to use this hostname in your LAN only, then you must create an A record (or CNAME) for it on your internal DNS server(s), and your clients must use this DNS server.

    What's in Vhosts_ispconfig.conf, and what's the output of
    Code:
    ifconfig
    ?
     

Share This Page