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 Active Member

    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 Active Member

    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

    see post #4
     
  7. asgare

    asgare Member

    ????
     
  8. HSorgYves

    HSorgYves Active Member

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

    asgare Member

    Solved!
    Reverse DNS not applied in ISP side! I called them to check out then it is solved.
     
  10. HSorgYves

    HSorgYves Active Member

    Reverse DNS prohibits pinging. I do not believe that story...
     
  11. asgare

    asgare Member

    I don't have much knowledge around ISP but as I asked them for help they told me we must create you a reverse dns sub domain and it solved my problem.
    For me enough to know the problem solved
     
  12. adamjedgar

    adamjedgar Member

    This has me completely confused, and i am interested in learning a bit more about this...

    What has the ISP got to do with this? I thought that this is a registrar zone file issue?

    Why do you even need reverse dns if you are simply using the domain name?

    If checking a domainname.com in order to find an ip address...in which case isnt all that is needed for this is a dns lookup, so add an A record at domain registry linking domain name with ipaddress?
     
  13. asgare

    asgare Member


    well, I don't have much information around ISP but giving you some information may help me to figure out more.
    I live in Iran where you can not access high speed Internet with cheap price, due to instead of buying dedicate Gb Internet line I bought shared ADSL with one IP then configured my DSL modem as a DMZ and installed ISPConfig as documentation guide lines.

    After encountering with this issue I thought problem caused by me, since I feel myself so newbie in this field but after checking all points called ISP and asked them I faced with this problem. Their answer to me was shocking! they told me since you use server with domain we much create a sub domain for you and this will let reverse dns works.

    Technically and practically I don't know what they have done but my problem solved.
    Also I am willing to know more in case of further community and specialists help.
     
  14. adamjedgar

    adamjedgar Member

    Iran....ok.
    Perhaps there are some additional restrictions on internet use their?

    Here is the process for me in my country.

    1. I use a google cloud web virtual webserver hosted in a datacenter
    2. I purchase a domain name (eg mydomain.com) with any internationally recognised registrar.
    3. I get a static ip address for my virtual webserver and also configure its hosts file and hostname as per the ispconfig tutorials
    4. I log into my domain registrar dashboard and create zone file "A records" linking mydomain.com with the webserver ip address.
    5. I also add some zone file "C Name" and, if i want incoming and outgoing email, mx records etc at domain registrar.

    I only need 1 "A record" linking mydomain.com to server ipaddress to be able to browse web directory.

    One thing i need to make clear....the domain registrar i am using provides free dns hosting for zone file records. Some registrars do not do this for free, but you can usually at least link your domain with an external dns provider (either your own nameservers or paid dns service provider nameservers)

    I dont know how the culture works in your country or webhosting services, but to be honest i think you have been told a bit of a "porky" and they have just fixed your zone file records for you.
     
  15. asgare

    asgare Member


    Thanks a ton dear friend, your way to host ISPConfig was very instructive for me. Since according US law most Google services band for us but always we do our best to find most secure and stable way to do this.

    Previously I bought service from 1&1 but the ping time was tremendously high, suppose 300 to 750 ttl, because of that and also lack of choice I prepared own local server which gives me 35 to 90 ttl in Iran territory.

    Once more thanks a million for sharing your valuable experience with me, I do hope here from others and their solutions upon that, especially those who uses cloud for ISPConfig and how they config. I really looking for more safe and stable ways, for example having 3 virtual machines from different vendors & different geographically which give me 99.999 data garanty.
     

Share This Page