# How to make a private network

**URL:** https://forum.algorand.co/t/how-to-make-a-private-network/2958
**Category:** Uncategorized
**Created:** [April 7, 2021, 3:04pm UTC](https://forum.algorand.co/t/how-to-make-a-private-network/2958 "2021-04-07T15:04:06Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![michaelfighting](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@michaelfighting](https://forum.algorand.co/u/michaelfighting)
#### Post date: [April 7, 2021, 3:04pm UTC](https://forum.algorand.co/t/how-to-make-a-private-network/2958/1 "2021-04-07T15:04:06Z")

</div>

Dear all  
I study Algorand recently, and I have some trouble in creating private network.

1. I want to make a private network, which I can get the voting status of nodes and the time of block generation. What should I do?

2. On the other hand, Where do I need to start mainly? If I want to configure the “genesis.json” by myself.  
Thanks

---

<div class="post-metadata">

### Author: ![fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fabrice](https://forum.algorand.co/u/fabrice)
#### Post date: [April 7, 2021, 4:08pm UTC](https://forum.algorand.co/t/how-to-make-a-private-network/2958/2 "2021-04-07T16:08:44Z")

</div>

To start a private network for development, there are two solutions:

- automated way using Docker: [GitHub - algorand/sandbox: Algorand node sandbox](https://github.com/algorand/sandbox)
- manual way with more configuration options: [Algorand Developer Portal](https://developer.algorand.org/tutorials/create-private-network/)

To create a production network, you first need to really understand the details of how the network work, read the documentation, and make many decisions:

- decide whether to use DNS SRV records or other solutions for node discovery
- decide how to prevent other people to see your network (use of a VPN for example)
- …

What use case are you considering?

---

<div class="post-metadata">

### Author: ![michaelfighting](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@michaelfighting](https://forum.algorand.co/u/michaelfighting)
#### Post date: [April 8, 2021, 2:20pm UTC](https://forum.algorand.co/t/how-to-make-a-private-network/2958/3 "2021-04-08T14:20:06Z")

</div>

Thanks fabrice.  
The purpose of making a private network is to understand the specific process of block consensus. I know that reaching consensus requires three “VRF”. Therefore I want to check “node.log” file to know which one is the primary block proposal, how many votes did each account vote for this proposal…However, I have some confusion about these.

1. The “node.log” file has too many information and I cannot find the key information. Can you tell me the main process that the file contains or any other helpful information please ?
2. I think that it is difficult for two nodes and three accounts to reflect the voting information of the accounts. Maybe should I modify " my\_network\_template.json".

---

<div class="post-metadata">

### Author: ![ryanRfox](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.algorand.co/ryanrfox/32/364_2.png) [@ryanRfox](https://forum.algorand.co/u/ryanRfox)
#### Post date: [April 8, 2021, 5:50pm UTC](https://forum.algorand.co/t/how-to-make-a-private-network/2958/4 "2021-04-08T17:50:19Z")

</div>

A new tutorial may be of interest to you:  
[Create A Private Instance of Algorand In A Testbed](https://developer.algorand.org/tutorials/create-private-instance-algorand-testbed/)

“…For example, this could be useful for researchers running stress tests on the Algorand network and measure metrics like scalability or resources utilization.”

---

<div class="post-metadata">

### Author: ![michaelfighting](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@michaelfighting](https://forum.algorand.co/u/michaelfighting)
#### Post date: [April 15, 2021, 10:20am UTC](https://forum.algorand.co/t/how-to-make-a-private-network/2958/5 "2021-04-15T10:20:55Z")

</div>

Thank you very much. I plan to create a private instance and I have this problem:

“file”:“bootstrap.go”,“function”:“[github.com/algorand/go-algorand/tools/network.ReadFromSRV",“level”:“info”,“line”:43,“msg”:"ReadFromBootstrap:](http://github.com/algorand/go-algorand/tools/network.ReadFromSRV%22,%22level%22:%22info%22,%22line%22:43,%22msg%22:%22ReadFromBootstrap:) DNS LookupSRV failed when using system resolver: no signature in DNS response for \_telemetry.\_tls.default.algodev.network”

This error is recorded in the relay node log, so my node can’t sync block. How can I fix this problem? Thanks for your help.

---

<div class="post-metadata">

### Author: ![fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fabrice](https://forum.algorand.co/u/fabrice)
#### Post date: [April 15, 2021, 7:06pm UTC](https://forum.algorand.co/t/how-to-make-a-private-network/2958/6 "2021-04-15T19:06:21Z")

</div>

Can you try to disable DNSSec?  
Flag `DNSSecurityFlags ` in `config.json`. See [Algorand Developer Docs](https://developer.algorand.org/docs/reference/node/config/)

---

<div class="post-metadata">

### Author: ![tsachi](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.algorand.co/tsachi/32/29_2.png) [@tsachi](https://forum.algorand.co/u/tsachi)
#### Post date: [April 15, 2021, 7:59pm UTC](https://forum.algorand.co/t/how-to-make-a-private-network/2958/7 "2021-04-15T19:59:46Z")

</div>

When creating a private network, the above message is expected ( unless you’ve provisioned DNS entries for your network. That’s not really required for private networks ).

Note that the above message is “info”. It’s not considered to be an error.

As long as you start the nodes use `goal network start ...`, it should provide it with the “linking” addresses by passing `-p <address:port>` when invoking the `algod`

---

<div class="post-metadata">

### Author: ![michaelfighting](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@michaelfighting](https://forum.algorand.co/u/michaelfighting)
#### Post date: [April 19, 2021, 3:10am UTC](https://forum.algorand.co/t/how-to-make-a-private-network/2958/8 "2021-04-19T03:10:26Z")

</div>

Thanks fabrice. I am sorry to reply you lately.  
I disable DNSSec and there are no above information.

---

<div class="post-metadata">

### Author: ![michaelfighting](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@michaelfighting](https://forum.algorand.co/u/michaelfighting)
#### Post date: [April 19, 2021, 3:21am UTC](https://forum.algorand.co/t/how-to-make-a-private-network/2958/9 "2021-04-19T03:21:08Z")

</div>

Thanks tsachi. I am sorry to reply you lately.

I invoke the algod by passing -p “ipaddress:4161”, but when I use goal network start… it show the error:  
Error loading deployed network: does not appear to be a valid network root directory:  
The relay node log show the warning：  
(\*WebsocketNetwork).tryConnect",“level”:“warning”,“line”:1837,“msg”:“ws connect(ws://testnet2-v1.algorand.network:4161/v1/testnet2-v1/gossip) fail: dial tcp: lookup testnet2-v1.algorand.network on 127.0.0.53:53: no such host”,“name”:“192.168.163.128:4161”,“time”:“2021-04-19T11:05:59.280111+08:00”}

What should I do to solve these problems? Thank you very much.

---

<div class="post-metadata">

### Author: ![tsachi](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.algorand.co/tsachi/32/29_2.png) [@tsachi](https://forum.algorand.co/u/tsachi)
#### Post date: [April 20, 2021, 3:04am UTC](https://forum.algorand.co/t/how-to-make-a-private-network/2958/10 "2021-04-20T03:04:49Z")

</div>

@michaelfighting

maybe I wasn’t clear. I didn’t intend for you to invoke the `-p <>` argument on your own. Running `goal network start` would do it on your behalf. i.e. you can see that when running `ps -Af | grep algod`.

Could you describe exactly how you created your own network ?  
Does it also happen if you use one of the pre-configured networks ?

---

<div class="post-metadata">

### Author: ![michaelfighting](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@michaelfighting](https://forum.algorand.co/u/michaelfighting)
#### Post date: [April 21, 2021, 2:52pm UTC](https://forum.algorand.co/t/how-to-make-a-private-network/2958/11 "2021-04-21T14:52:04Z")

</div>

Oh, that’s how it is.  
I create my own network by following this tutorial  
[https://developer.algorand.org/tutorials/create-private-instance-algorand-testbed/](https://developer.algorand.org/tutorials/create-private-instance-algorand-testbed/)  
In my network, there two non-relay nodes and one relay node  
It cann’t sync node when I use one of the pre-configured networks. And when I run ps -Af | grep algod, it shows the following information:  
meng 12508 1608 0 22:46 pts/1 00:00:00 /home/meng/node/algod -d /home/meng/node/testnetdata  
meng 12517 3182 0 22:46 pts/1 00:00:00 grep --color=auto algod  
So tsachi! what does it mean ? thanks for your help
