LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Hosting Multiple Domains on one IP Address in Bind DNS (https://www.linuxquestions.org/questions/linux-server-73/hosting-multiple-domains-on-one-ip-address-in-bind-dns-923010/)

jayakumar01 01-10-2012 04:52 AM

Hosting Multiple Domains on one IP Address in Bind DNS
 
Hi

i Have a public ipaddress xx.xx.xx.xx. i had made the ISP provider to point out my domain to the ipaddress which i have and i have configured dns.
I have also have another registered domain name .whether its possible to have two registered domain name to point out to same ipaddress.


Thanks&Regards
jayakumar

acid_kewpie 01-10-2012 05:03 AM

Absolutely. Any number of DNS A records can point to the same IP. Assuming you are actually refering to Apache to provide the domain, you'd just set up VirtualHosts to serve each domain independently. Please refer to stadnard documentation for help with VirtualHosts, and ask back if you have specific issue.s

cormanstnl 01-10-2012 05:04 AM

IMHO, I think that is possible

acid_kewpie 01-10-2012 05:46 AM

Quote:

Originally Posted by cormanstnl (Post 4570893)
IMHO, I think that is possible

Not really a question of opinions ;)

jayakumar01 01-10-2012 06:10 AM

Hi
i Had configured a single domain name in single ipaddress.


[root@host2 ~]# hostname
bmw.etl.com
[root@host2 ~]# ping bmw.etl.com
PING bmw.etl.com (10.200.0.225) 56(84) bytes of data.
64 bytes from bmw.etl.com (10.200.0.225): icmp_seq=1 ttl=64 time=0.037 ms

--- bmw.etl.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.037/0.037/0.037/0.000 ms
[root@host2 ~]# dig bmw.etl.com

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> bmw.etl.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38871
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;bmw.etl.com. IN A

;; ANSWER SECTION:
bmw.etl.com. 86400 IN A 10.200.0.225

;; AUTHORITY SECTION:
etl.com. 86400 IN NS bmw.etl.com.

;; Query time: 1 msec
;; SERVER: 10.200.0.225#53(10.200.0.225)
;; WHEN: Tue Jan 10 17:09:19 2012
;; MSG SIZE rcvd: 59

[root@host2 ~]# nslookup bmw.etl.com
Server: 10.200.0.225
Address: 10.200.0.225#53

Name: bmw.etl.com
Address: 10.200.0.225

[root@host2 ~]# nslookup 10.200.0.225
Server: 10.200.0.225
Address: 10.200.0.225#53

225.0.200.10.in-addr.arpa name = bmw.etl.com.

acid_kewpie 01-10-2012 06:20 AM

why are you telling us that? Are you expecting us to comment on it? I will comment that that's an private IP. What does an ISP have to do with that?

jayakumar01 01-10-2012 06:59 AM

Hi
OK I Will try it with public ipaddress .

Thanks for ur reply


All times are GMT -5. The time now is 05:19 AM.