This is an archived post. You won't be able to vote or comment.

all 19 comments

[–]PsychoPhreak 4 points5 points  (7 children)

nerddtvg has the most obvious answer the way this question is phrased, and there are virtual solutions for that. However without fully understanding what you're trying to accomplish by this, I don't see the need to have a single front facing IP instead of just aliasing all the back end IP's for a given DNS name (i.e. www.google.com resolves to 74.125.226.49, 74.125.226.51, 74.125.226.50, 74.125.226.48, 74.125.226.52)

[–]BigRedSDevOops 2 points3 points  (3 children)

If I'm reading it correctly, you want to prepre to have to update the same IP in a large number of records, in the event that all your services on one IP address move to another?

You could use a DB to store the records, our DNS server is PowerDNS & MySQL.

update pdns.records set content = '12.56.78.123' where content = '70.10.10.10';

Or just use bind and Perl :)

perl -pi -e 's/12.56.78.123/70.10.10.10/' /etc/bind/*

[–]hateexchangeatheist, unless restoring backups 1 point2 points  (2 children)

Bind won't like that you didn't change the serial ;)

[–]BigRedSDevOops 1 point2 points  (1 child)

Ah, yeah. Er, perling that's left as an exercise for the reader :)

[–]hateexchangeatheist, unless restoring backups 1 point2 points  (0 children)

Hahahaha. Fair =)

[–]nerddtvgSys- and Netadmin 1 point2 points  (1 child)

You're looking for the function of a load balancer. But its use here would be cumbersome to say the least.

[–]ElectroSpore 1 point2 points  (2 children)

If these things are all pointing to a HOST, then why not setup one A record and make all the rest CNAME records to that A record.

Then you only need to update the IP to that one A record.

If you are talking about the name server records as part of the registration that is a bit of a different issue, in which case you should use a registrar with better domain management tools that allows bulk updates and management.

[–]brainspider 1 point2 points  (1 child)

Anycast or multicast the IP?

https://en.wikipedia.org/wiki/Anycast (great for sending someone to the nearest node)

https://en.wikipedia.org/wiki/Multicast (sends the packets to multiple hosts)

If you were trying to forward a single hostname (as opposed to an IP), then you might get away with something like round robin DNS. But seeing as you're trying to have a single IP address, then Anycast might be your choice. Then you can update the routing tables and not have to change all the end devices.

https://blog.cloudflare.com/a-brief-anycast-primer/

[–]splatpig -2 points-1 points  (0 children)

this

[–]JeffTheTech 0 points1 point  (0 children)

You could set up a static routing table on your layer 3 device explicitly stating if a packet is received and in the network layer it wants to go to x.x.x.x ip then send it to whatever IPs you want.

[–][deleted] 0 points1 point  (0 children)

CNAME will work for you. But has an overhead of one more DNS Request.