<p>cgminer accepts domain names for me, It's all I have used, never have I used an IP. I would check and make sure your URI is correct if DNS is working for you in your web browser and such.</p>

<p>Here is an example of a URI for stratum
stratum+tcp://[serveraddress/domain]:[port]</p>

<p>The cgminer command would be:
./cgminer -o stratum+tcp://[serveraddress/domain]:[port] -u [username] -p [password]</p>

<p>If you want to test it on another pool, try this command below and try mining a couple shares on Eligius, there's no registration, just use your btc address as username and "x" for password
cgminer -o stratum+tcp://stratum.mining.eligius.st:3334 -u YourBitcoinAddress -p x</p>

<p>Maybe you could copy and paste some of the error messages you were getting to help further diagnose this?</p>

CC BY-SA 3.0
2014-02-01T08:13:53.533Z
it's working fine with DNS's in the pool config, i am talking about the --api-allow command
Royi Mindel
CC BY-SA 3.0
2014-01-31T22:44:06.007Z
2014-01-31T22:44:06.007Z
wheezylemonsqueezy
<p>I am wondering why cgminer is not accepting dns instead of IP addresses</p>

<p>I need to allow a server by it's dns...is it possible?</p>

CC BY-SA 3.0
2014-01-31T14:34:31.453Z
Please clarify, as I do not understand how you would use domain name servers for this. Do you mean you would like to use a domain (e.g. example.com) to connect?
Mark
CC BY-SA 3.0
2014-02-01T08:15:09.397Z
I would like to use a DNS in the --api-allow command and not IP, so i can control my machine with my dynamic ip address of my other machine, i have set up a noip.com dynamic dns, but the --api-allow don't work for some reason if it's not getting an IP
Royi Mindel
CC BY-SA 3.0
2014-08-30T05:32:27.360Z
It's probably a bad idea anyway, since then anyone who compromised your noip account (or any crooked noip sysadmin) could point your domain to themself and then take control of your miner.
Nate Eldredge
<cgminer>
cgminer api-allow using dns instead of IP address
Royi Mindel
# cgminer api-allow using dns instead of IP address

(Asked by: username_0 on 2014-01-31)

I am wondering why cgminer is not accepting dns instead of IP addresses

I need to allow a server by it's dns...is it possible?

**Tags:** cgminer

> **Comments:**
> **username_1**: Please clarify, as I do not understand how you would use domain name servers for this. Do you mean you would like to use a domain (e.g. example.com) to connect?  
> **username_0**: I would like to use a DNS in the --api-allow command and not IP, so i can control my machine with my dynamic ip address of my other machine, i have set up a noip.com dynamic dns, but the --api-allow don't work for some reason if it's not getting an IP  
> **username_2**: It's probably a bad idea anyway, since then anyone who compromised your noip account (or any crooked noip sysadmin) could point your domain to themself and then take control of your miner.  

---

## 1 answers

### Answer by username_3 on 2014-01-31. Score: 1

cgminer accepts domain names for me, It's all I have used, never have I used an IP. I would check and make sure your URI is correct if DNS is working for you in your web browser and such.

Here is an example of a URI for stratum
stratum+tcp://[serveraddress/domain]:[port]

The cgminer command would be:
./cgminer -o stratum+tcp://[serveraddress/domain]:[port] -u [username] -p [password]

If you want to test it on another pool, try this command below and try mining a couple shares on Eligius, there's no registration, just use your btc address as username and "x" for password
cgminer -o stratum+tcp://stratum.mining.eligius.st:3334 -u YourBitcoinAddress -p x

Maybe you could copy and paste some of the error messages you were getting to help further diagnose this?

> **Comments:**
> **username_0**: it's working fine with DNS's in the pool config, i am talking about the --api-allow command  

---

