Local dev server

  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post January 30th, 2008, 1:35 am

I've been doing alot of reading on how to setup a local dev server to manage multiable webpages with virtual hosts and a DNS server. However I have yet to find anything about how to tell another computer on the network to point its self to the local DNS server so it can use it to find the virtual hosts.

All I can find is telling me to edit my hosts file on my main computer.

Got any info?

Also know of any good control panels to manage virtual hosts and a DNS server?

I'm currently looking at Webmin and ISPConfig.
#define NULL (::rand() % 2)
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 30th, 2008, 1:35 am

  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post January 30th, 2008, 6:37 am

Editing the hosts files may be all you need. In Unix /etc/hosts and /etc/resolv.conf
It could be different on your system but that's where I would start.
How do you know when a politician is lying? His mouth is moving.
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post January 30th, 2008, 12:17 pm

I would think if you've got a router connecting multiple computers, you could add the local IP of the DNS server as the primary DNS address on the router itself, then add your usual DNS addresses as the secondary & ternary entries.

Never tried it, but I remember seeing a form for manually setting this in my router ages ago.
Strong with this one, the sudo is.
  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post January 30th, 2008, 2:01 pm

I never heard of that but it might work. I always thought that the DNS entries on the router were for upstream only, not local hosts.
How do you know when a politician is lying? His mouth is moving.
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post January 30th, 2008, 8:42 pm

in /etc/resolv.conf you can set a name server for the computer to look go to. Then if your name server does not have the required dns it will forward the request out to another DNS server to provide in the forward {} section in /etc/bind/named.conf.options

However I cant find anything like this for windows which is my main computer I use.
#define NULL (::rand() % 2)
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post January 31st, 2008, 1:46 am

in windows, if you go into the control panel, network and internet connections,
then network connections, right click on your network connection (usually title Local Area Connection) and go to properties. a window comes up with a list box in the middle. scroll to the bottom and select Internet Protocol (TCP/IP) and then click the properties button beneath it. another window will open, and in the bottom portion of this new window you're able to set your preferred and alternate dns servers. set em, apply, voila.

if that doesn't help,
check out http://www.dns.net/dnsrd/servers/windows.html
and http://members.shaw.ca/nicholas.fong/dig/

hopefully one of the above could be of some help?
Image
"In a world without walls and fences, who needs Windows and Gates?"
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post January 31st, 2008, 12:14 pm

Ah, thank you. Exactly what I was looking for.
#define NULL (::rand() % 2)
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post January 31st, 2008, 2:20 pm

no prob :]
glad i could help.
Image
"In a world without walls and fences, who needs Windows and Gates?"
  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post January 31st, 2008, 3:21 pm

Why was the question in the Unix and Linux forum?
How do you know when a politician is lying? His mouth is moving.
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post January 31st, 2008, 5:56 pm

Probably should have been in the Windows forum, but I wasnt sure if it was a special setting on the DNS server that projected DNS settings to other computers on the network or not.

That thought sounds rather stupid now though, but you never know.
#define NULL (::rand() % 2)
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post January 31st, 2008, 6:20 pm

SpooF wrote:
That thought sounds rather stupid now though, but you never know.

eh, i wouldn't worry about it.. "the only dumb question is the one that doesn't get asked."

besides, dons probably just mad because i beat him to the answer ;P hahah
Image
"In a world without walls and fences, who needs Windows and Gates?"
  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post January 31st, 2008, 7:24 pm

It sent me in the wrong direction. I never would have looked anywhere other than the files I mentioned. No big deal.
How do you know when a politician is lying? His mouth is moving.
  • AnarchY SI
  • Web Master
  • Web Master
  • User avatar
  • Joined: Oct 30, 2004
  • Posts: 2521
  • Loc: /usr/src/MI
  • Status: Offline

Post January 31st, 2008, 9:38 pm

lol yea, understandable. i just like giving you a hard time :P
Image
"In a world without walls and fences, who needs Windows and Gates?"

Post Information

  • Total Posts in this topic: 13 posts
  • Users browsing this forum: No registered users and 48 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.