feeding a DNS server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

feeding a DNS server

Post by Vegan »

given a crude web form, box1 is the domain.net, box2 is the IP address

I can massage the form with JavaScript I guess to check for valid data, but how about feeding that to a DNS server

this is part of the stuff I want to assemble as I position my web server VM as a cloud service

generally for web hosting my server IP would be used for the domain.net box1, but if a different server is being used...

one problem I see a lot, is changing IP addresses when an ISP has to change gear etc
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: feeding a DSN server

Post by requinix »

So... what are you trying to solve?
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

Re: feeding a DSN server

Post by Vegan »

mostly to deal with server outages etc

and moving web hosts from one server to another for upgrades etc

or even possibly using a bunch of servers
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: feeding a DSN server

Post by requinix »

The best I can figure you're saying is that you have/want to make a form that lets you configure the host entries in a DNS server. This is risky: your script will have to modify server configuration files and reload/restart the DNS daemon. All as root. And you want a web form to drive that?

The cloud works by funneling everything through a "single" lightweight chokepoint. Beyond that there can be one or more servers but that is entirely transparent to the outside world.
Like a load balancer: all activity goes through it and it decides where they go from there. If you add or remove servers that doesn't affect where activity goes because it all goes to the load balancer anyways. DNS requests still go to the load balancer which then distributes them to the server(s) actually handling it.

So:
- ISP "changing gear"? Not sure how that would affect you.
- Server outages? Load balancing.
- Moving hosts? Load balancing.
- Bunch of servers? Load balancing.
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

Re: feeding a DNS server

Post by Vegan »

I was thinking about making a web server more ISP like so that taking in more development can be just another project in my development tools
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
Post Reply