Re: Is it possible to configure two subdomains for an IP address?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ewww god bind even allows it ugly ugly ugly

in /etc/bind/named.conf I added a ipaddress as a domain and was able
to use it like expected.

zone "127.0.0.1" {
        type master;
        file "/etc/bind/test";
};

test.127.0.0.1. IN      A       127.0.0.1

and an nslookup worked as expected

nslookup test.127.0.0.1 127.0.0.1
Server:         127.0.0.1
Address:        127.0.0.1#53

Name:   test.127.0.0.1
Address: 127.0.0.1

On Thu, Mar 19, 2009 at 1:11 AM, Jeff Sadowski <jeff.sadowski@xxxxxxxxx> wrote:
> On Thu, Mar 19, 2009 at 12:30 AM, Krist van Besien
> <krist.vanbesien@xxxxxxxxx> wrote:
>> On Thu, Mar 19, 2009 at 6:15 AM, Rex C. Eastbourne
>> <rex.eastbourne@xxxxxxxxx> wrote:
>>>
>>> Thanks for the replies. I am working on a Slicehost server with a static IP
>>> address; it looks something like 173.23.45.67. I'm able to navigate to this
>>> IP address from any computer as if it were any other domain name. What I was
>>> wondering is whether it's possible to navigate to a "subdomain" of an IP
>>> address, so that "testing.173.23.45.67" and "production.173.23.45.67" would
>>> be an actual valid websites. However, I am starting to get the feeling that
>>> this might not be possible.
>>
>> This  is indeed impossible. I wonder where you ever got the feeling
>> that this might be possible.
>>
>
> using your own example below and adding
> "67.148.130.3 test.67.148.130.3"
> to my /etc/hosts
> I even created a test theory page that  would come up if your dns
> resolved as such eww yucky.
> It would not be possible from the outside because your not likely to
> be able to get that domain name so I can see maybe why you say
> impossible. I can't see why it would be desirable and I did read it
> wrong. I thought he was talking about what you put below and worded it
> funny. But an inside dns you could possibly add the addresses to
> lookup correctly. Yucky don't use numbers as your subdomain rule of
> thumb.
>
>>  I'll ask the owner of my Slicehost VPS to buy us
>>> a domain name so that I can have "testing.mysite.com", etc. Hopefully that
>>> will make this configuration easier.
>>
>> What you can do is just make up a domain name, and add it to your
>> /etc/hosts file (on the machine you are testing from)
>>
>> So you could add:
>> 173.23.45.67    testing.mydomain.local production.mydomain.local to
>> your /etc/hosts.
>>
>> Important: You need to do this on the machine you run your webbrowser
>> on, not the machine you run your webserver (although it won't harm
>> there either).
>>
>> Krist
>>
>>
>> --
>> krist.vanbesien@xxxxxxxxx
>> krist@xxxxxxxxxxxxx
>> Bremgarten b. Bern, Switzerland
>> --
>> A: It reverses the normal flow of conversation.
>> Q: What's wrong with top-posting?
>> A: Top-posting.
>> Q: What's the biggest scourge on plain text email discussions?
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
>> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>>
>>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux