can ping ip but can't ping domain

Discussion in 'Server Operation' started by asgare, Sep 13, 2017.

  1. asgare

    asgare Member

    Hello all participants
    I use ISPCONFIG on Debian server for more than 2 years and installed it as is like documentation said!
    In my new HP server I got a problem with Debian 9. I connected one static IP via DMZ to my ADSL modem. Everything installed on my new server even new version of ISPCONFIG 3. Now I can ping my server but can not ping my domain.

    here is my /etc/network/interfaces:
    Code:
    auto lo
    iface lo inet loopback
    auto eth0
    iface eth0 inet static
    address 192.168.1.193
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    gateway 192.168.1.1
    alos hosts:
    Code:
    127.0.0.1       localhost.localdomain   localhost
    192.168.1.193           ns1.x37.ir      ns1
    # The following lines are desirable for IPv6 capable hosts
    ::1     localhost ip6-localhost ip6-loopback
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    
    resolv.conf file:
    Code:
    nameserver 192.168.1.1
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    nameserver 208.67.222.222
    nameserver 4.2.2.4
    nameserver 93.118.180.232
    
    I don't know which part I missed to explain like loopback and so on but this issue made me very crazy.
    BTW, my public ip is 93.118.180.232
     
  2. HSorgYves

    HSorgYves Member HowtoForge Supporter

    I can ping that IP. Maybe your Domain doesn't resolve to that IP?
     
  3. asgare

    asgare Member

    Exactly this is what I want. I googled tons of times but still no solution for that.
     
  4. HSorgYves

    HSorgYves Member HowtoForge Supporter

    Which domain is it? Where are it's DNS Servers?
     
  5. asgare

    asgare Member

    also I changed this because I read somewhere if resolving not take effected do this:
    at middle line : "hosts: files mdns4_minimal dns mdns4"

    Code:
    #/etc/nsswitch.conf
    #
    # Example configuration of GNU Name Service Switch functionality.
    # If you have the `glibc-doc-reference' and `info' packages installed, try:
    # `info libc "Name Service Switch"' for information about this file.
    
    passwd:         compat
    group:          compat
    shadow:         compat
    gshadow:        files
    #hosts:          files mdns4_minimal [NOTFOUND=return] dns
    hosts:          files mdns4_minimal dns mdns4
    networks:       files
    
    protocols:      db files
    services:       db files
    ethers:         db files
    rpc:            db files
    
    netgroup:       nis
    
    Also changed the default suffix that avahi uses for mDNS, by adding the following to the [server] section of /etc/avahi/avahi-daemon.conf:
    Code:
    domain-name=.alocal

    still confused!
     
  6. florian030

    florian030 ISPConfig Developer ISPConfig Developer

  7. asgare

    asgare Member

    ????
     
  8. HSorgYves

    HSorgYves Member HowtoForge Supporter

    Which domain is it? Where are it's DNS Servers?
     

Share This Page