• Starting today August 7th, 2024, in order to post in the Married Couples, Courting Couples, or Singles forums, you will not be allowed to post if you have your Marital status designated as private. Announcements will be made in the respective forums as well but please note that if yours is currently listed as Private, you will need to submit a ticket in the Support Area to have yours changed.

  • CF has always been a site that welcomes people from different backgrounds and beliefs to participate in discussion and even debate. That is the nature of its ministry. In view of recent events emotions are running very high. We need to remind people of some basic principles in debating on this site. We need to be civil when we express differences in opinion. No personal attacks. Avoid you, your statements. Don't characterize an entire political party with comparisons to Fascism or Communism or other extreme movements that committed atrocities. CF is not the place for broad brush or blanket statements about groups and political parties. Put the broad brushes and blankets away when you come to CF, better yet, put them in the incinerator. Debate had no place for them. We need to remember that people that commit acts of violence represent themselves or a small extreme faction.
  • We hope the site problems here are now solved, however, if you still have any issues, please start a ticket in Contact Us

Linux DNS Question

pgp_protector

Noted strange person
Dec 17, 2003
51,914
17,818
57
Earth For Now
Visit site
✟474,511.00
Gender
Male
Faith
Christian
Marital Status
Widowed
Politics
US-Others
Question.

I'm trying to setup a laptop to run Linux (Ubuntu 8.04 is on it now)
I'm going to be using it for web development & play :)

What I want to know is how / if I can set up a DNS server on the laptop to do the following.

I own the domain xyz.com (not really xyz, but will work for this point :) )

So If I set my main computer to use the laptop DNS as it's DNS server I want is to that if I go to www.xyz.com, it will go to the internet site xyz.com as normal.
But if I go to test1.xyz.com, it will then use the Laptops web server to serve the pages in the subdomain test1.xyz.com.

So
1) Is this possible
2) If so, how do I configure it ???
 
  • Like
Reactions: BlessEwe

leonstafford

Newbie
Feb 8, 2009
12
2
✟22,642.00
Faith
Judaism
Marital Status
Married
For web development, it would be better to setup a dummy DNS name for testing, ie. xyzlocal.com . This way when you want to copy your code across you shouldn't need to make any changes to it. For simple web design (not development), the above wont be an issue though. Modifying your hosts file and restarting the Apache client should be enough to get this to work.

Not sure how it works for the sub domain being local and the regular domain being live.... If you rely on the CNAME change, you would need a way to redirect the DNS requests back from the internet to your computer with a dynamic DNS provider. I think this way is not as clean and relies on many more pieces, meaning more chance of errors and headaches....

If you can, try both and see which suits you better:wave:
 
Upvote 0

nestoj

Senior Member
Feb 14, 2007
1,760
413
Niš
✟28,006.00
Faith
Eastern Orthodox
Marital Status
Single
Not sure do you still need help, but you'd have to provide more precise data. My guess is that you're interested in setting up BIND on your laptop, and you want that laptop and some other computers from internal IP address range to use laptop as a DNS server? You also want to have a single record on laptop DNS, named test.xyz.com served from the laptop, but, for instance, "www.xwz.com" name resolution, forwarded to a public DNS? If my assumptions are correct - try this, partial, solution: http://groups.google.com/group/comp.protocols.dns.bind/browse_thread/thread/8baadcffb64c3ac2
 
Upvote 0