DNS A record resolving according to tcp check health

higaus

New Member
Joined
Jan 2, 2022
Messages
1
Reaction score
0
Credits
14
hello

i have acentos linux OS
im looking for to have in the centos OS away to make resolving DNS just after checking the health of the A record .
i will give an example :

if i have domain : example.com
and the A record for this example.com is 3 ips
1.1.1.1
2.2.2.2
3.3.3.3

in this situation every time that i make resolving to example.com i getting different IP from the list up .
what i need is to be able to make health check for port 443 to the dns resolving and just after having tcp health is good i will return the ip resolving

please help meeee
 


Normally DNS will want 1 subnet to reolve to. You can do super-netting, but I wouldn't start out that way.
What is you subnet mask for this? It will have to be something like 248.248.248.0 in order for that to work.
Also what is your gateway? Usually your router (gateway) is the .1 IP address. It doesn't have to be,
but that's normally the convention used.

A more practical set of 3 IPs would look like this..

3.3.3.1
3.3.3.2
3.3.3.3

That way they are all in the same broadcast subnet.
In case you are unaware of this. There are certain "reserved" subnets that don't get routed out to the internet.
You can't just pick any number you like, the domain registry has assigned certain IPs to certain domains.
You can't use someone else numbers.

There are a few exceptions.
Anything that start with 10 doesn't get routed out to the internet.
You might want to use something like 10.20.30.x

You 3 IPs might be

10.20.30.1
10.20.30.2
10.20.30.3

Another reserved space is the 192.168.x.x address space.
By default almost every router you get from the store of from your ISP will use either
10.x.x.x or 192.168.x.x.
 
Last edited:

Staff online

Members online


Top