I have an irregular file which I want to join the 3 lines when **net** is seen then join the next two lines

```
abscc.tech.com
________
________
eaaa.bang.com
________
________
pop.wow.com
________
net self 10.47.250.189 
    address 10.47.250.189/29
    vlan trust_f5_1293
net self 10.47.96.12 
    address 10.47.96.12/24
    vlan vips_inline_1096
________
yuum.bean.com
________

```

The Result should be

```
abscc.tech.com
________
________
eaaa.bang.com
________
________
pop.wow.com
________
net self 10.47.250.189 address 10.47.250.189/29 vlan trust_f5_1293
net self 10.47.96.12 address 10.47.96.12/24 vlan vips_inline_1096
________
yuum.bean.com
________

```

I tried

```
awk '/net/{if (NR!=1)print "";next}{printf $0}END{print "";}' file.txt

```

but it just begins from the first 'net' and becomes garbles after that.