Home > apache 2.2 > Relation between Apache and DNS configuration

Relation between Apache and DNS configuration

February 22Hits:3
Advertisement

I configured my DNS (bind9) to accept every subdomain, using a wildcarded 'A' record :

*.mydomain.tld.      IN    A         xx.xx.xx.xx 

I configured Apache to serve some specific subdomains using virtual hosts :

<VirtualHost *:80>         ServerName sub1.mydomain.tld         ServerAlias sub1.mydomain.tld         JkMount / sub1JK         JkMount /* sub1JK </VirtualHost> 

when I ping from a remote computer on a subdomain configured in apache I get a response. When I ping on a subdomain that is not configured in apache, the host is not found.

I don't understand why apache configuration would affect DNS resolution like this?

I would appreciate any information that helps me understand this.

Thanks a lot.

Answers

You can confidently exclude any relation between Apache and BIND, and any relation between ping and either of the two. The problem you describe is rooted somewhere else.

Here's how you can troubleshoot it:

  1. Query from a remote host your DNS server for the two domains not working: dig @dns-srv-ip sub1.domain.com and dig @dns-srv-ip sub2.domain.com
  2. If your BIND Wildcard configuration is running, they will both return the IP. If not, the problem is in BIND: make sure BIND reads the files you edited.
  3. (remote) ping uses the DNS resolver configured on the remote host. Check /etc/resolv.conf on the remote host, and use dig sub1.domain.com and dig sub2.domain.com to ensure both are resolved. No @dnsip here!
  4. if sub1 and sub2 do not resolve identically at the remote host, then it's a propagation issue, or a resolver issue.

Related Articles

  • Relation between Apache and DNS configurationFebruary 22

    I configured my DNS (bind9) to accept every subdomain, using a wildcarded 'A' record : *.mydomain.tld. IN A xx.xx.xx.xx I configured Apache to serve some specific subdomains using virtual hosts : <VirtualHost *:80> ServerName sub1.mydomain.tld Serve

  • Could you please explain this DNS configuration to me?June 18

    I know very little about DNS configuration. Could anyone please explain to me, in plain english, what the following DNS configuration achieve? It's the default configuration for my hosting provider. NAME/TYPE/VALUE/PRIORITY A X.X.X.X 0 * A X.X.X.X 0

  • Access forbidden! dns configuration? suse10 x86_64July 8

    first i'd like to thanks for the great howto's and also congratulate everyone that's helping other people in this forums. I'll try to describe everything I did until now b4 I get to the actual problem the story is kind of long... I followed the steps

  • Why does Active Directory: Domain Services configuration sit at "Examining DNS configuration"?July 12

    I have uninstalled, rebooted, reinstalled, added, removed, changed, reconfigured everything imaginable related to AD: DS and it refuses to configure via dcpromo.exe. It sits at "Examining DNS configuration" for over an hour. It adds things to th

  • How to setup Sub Domains with internal and external DNS ConfigurationJune 22

    I am setting up a mail server and a few other application servers which will need to be accessed from both inside and outside the organisation via web browser. I would like to create sub domains for all these web servers to make things consistent. Ou

  • DNS configuration validationDecember 9

    I am having issues migrating my current Active Directory objects to my new Domain using ADMT. I have gone to a lot of resources to resolve this issue and they seem to point to DNS. Is there a tool or command or something that can validate my DNS conf

  • Web site DNS configuration Without using hosting nameserversMay 22

    i am publishing my website(www.muratturan.com) by using godaddy's "Total DNS Control". My configuration like this: 1-) I configured my domain to total dns control by setting nameservers to total dns control's. 2-) In total dns control panel i se

  • DNS Configuration when registrar and host are two different companiesFebruary 3

    I'm a total noob when it comes to DNS configuration. My client bought a domain through one company and is hosting their site with another (a virtual dedicated server). I can't find anything on the web that explains one's way through this setup. Where

  • Are there tools to convert existing DNS configuration to Amazon Route 53?April 10

    I'd like to convert all my domain names/DNS configuration to use Amazon Route 53. I'm wondering if there are any tools available that take existing DNS records and convert them for use with Amazon Route 53. --------------Solutions------------- Amazon

  • DNS configuration on website makes it available only some of the timeDecember 25

    The DNS configuration on my website is periodically dropping visitors and I have no idea why. Most of my website's visitors are seeing it fine, but in the last weeks more and more visitors report that the website isn't loading for them, like the webs

  • web access without dns configurationSeptember 4

    Hi, Is there a way to access a site before any dns configuration i.e.something like : http://myserver.ovh.net/client3/site2 --------------Solutions------------- Please take a look here: http://www.howtoforge.com/forums/member.php?u=3

  • Apache virtual hosts configuration works on Windows, not on LinuxSeptember 8

    On Windows this Apache virtual host configuration is fine, but when on Linux it does not work the same. NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot "/www/chess/htdocs" ServerName www.c.com ServerAlias www.c.com php_value include_p

  • DNS Configurations for Microsoft VDI on Hyper-V Server 2012November 3

    I'm trying to set up VDI using Hyper-V Server 2012. I have 2 physical machines, one Windows 8 client for remote management and another machine running a fresh copy of Hyper-V Server 2012. I'll be creating the VDI infrastructure on virtual machines on

  • Testing DNS configuration of domain by using hosts file?May 26

    I'm currently migrating a website to another server, and want to test the DNS configuration (more specifically, email MX records) before moving the domain over. I've configured the DNS on the new server to have MX entries for Google Apps in the same

  • Help on DNS Configuration

    Help on DNS ConfigurationJune 16

    Help on DNS Configuration [solved] Hello. I would like to use ISPConfig 3 to setup my DNS server but I'm a noob in this domain and I don't know how to acheive that. I've a dedicated server, with a fully qualified name, let call it myserver.mydomain.c

  • Create clean DNS configurationsJuly 8

    I'm concerned about creating a clean / easy managed DNS configuration for a domain. Every time I have to manage a new domain, previous configurations are just dozens and dozens of A records pointing to IPs. I always use CNAMES as follow: server1.mydo

  • Trouble with DNS configurationJuly 12

    I'm having trouble with DNS configuration for a domain and do not know how to trace it properly. From trying to troubleshoot with nslookup, it seems as though the authoritative NS are never being contacted. But when I check the whois for the domain,

  • dns configuration problem bind9October 11

    Following is my bind9 configuration the domain I want to configure is home.lan it is home network /etc/bind/named.conf.local is following zone "home.lan" IN { type master; file "/etc/bind/zones/home.lan.db"; }; zone "1.168.192.in-

  • Correct DNS configuration to use Route 53 for existing domainMay 24

    we are trying to make our heroku app available under example.com (changed here). I followed the heroku guide for using Route 53 for that (https://devcenter.heroku.com/articles/route-53). However, I think already in the DNS configuration of the zone f

  • Split DNS configuration: can't update external zone from internal system using nsupdateAugust 26

    I have set up a single DNS server with bind9 and a split dns configuration so that all internal requests for my domain name get the internal IP address, and all requests from outside my network get the official address (which are routed through the C

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.532 s.