# Harvester DNS cluster-registration-url

**URL:** <https://forums.suse.com/t/harvester-dns-cluster-registration-url/44944>\
**Category:** SUSE Virtualization\
**Created:** [January 10, 2025, 8:20pm UTC](https://forums.suse.com/t/harvester-dns-cluster-registration-url/44944 "2025-01-10T20:20:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmaro](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@jmaro](https://forums.suse.com/u/jmaro)\
**Post date:** [January 10, 2025, 8:20pm UTC](https://forums.suse.com/t/harvester-dns-cluster-registration-url/44944/1 "2025-01-10T20:20:02Z")

</div>

Hey All, I apologize if this is an easy one but I’m beating my head against the desk. I just moved away from esxi and have a bare metal harvester server running v1.4.0. I have a separate rancher deployment that is not hosted on this server. I am trying to enter the rancher’s cluster-registration-url into the harvester settings but it is failing as dns is not finding an entry for the host.

When I ssh into the harvester server and nslookup my rancher deployment it returns the correct IP. But it appears that when I enter that URL into cluster-registration-url it uses rke2-coredns to attempt to resolve, not the server’s dns provider.

Is this expected behavior? If so, what is the best way to add the harvester server into my rancher deployment?

---

<div class="post-metadata">

**Author:** ![Router19](https://avatars.discourse-cdn.com/v4/letter/r/edb3f5/32.png) [@Router19](https://forums.suse.com/u/Router19)\
**Post date:** [March 3, 2025, 11:53pm UTC](https://forums.suse.com/t/harvester-dns-cluster-registration-url/44944/2 "2025-03-03T23:53:32Z")

</div>

Yes it’s expected behavior as harvester will deploy a fleet agent in its own rke2 cluster to talk to rancher api. When you ssh into harvester you probably have already dns configured (on the machine), but you don’t have same dns in the cluster running harvester.

To make it work (as you guessed) you need to customize harvester rke2 coredns config to point to your dns (resolving the rancher name) to allow pods in harvester rke2 cluster to resolve your domain names

Something like this:

apiVersion: [helm.cattle.io/v1](http://helm.cattle.io/v1)  
kind: HelmChartConfig  
metadata:  
name: rke2-coredns  
namespace: kube-system  
spec:  
valuesContent: |-  
zoneFiles:  
- filename: dns.conf  
domain: example  
contents: |  
example:53 {  
forward .   
}  
extraConfig:  
import:  
parameters: /etc/coredns/dns.conf
