mesos-dns icon indicating copy to clipboard operation
mesos-dns copied to clipboard

*taskID*.slave.mesos can be an invalid A record.

Open drewkerrigan opened this issue 8 years ago • 0 comments

When lookup fails in generator.go's slaveRecords for slave.PID.Host, we default to using labels.DomainFrag(slave.PID.Host, labels.Sep, spec) for the rg.SlaveIPs[slave.ID] value.

Later in taskContextRecord, we use that for *taskID*.slave.mesos records. A test case for this and possibly a fix should be created so that invalid A records are not created in this situation.

My suspicion is that a failure would occur later on down the line because resolver.go will attempt a .To4() on all A records which should fail this case.

drewkerrigan avatar Oct 09 '17 18:10 drewkerrigan